Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After changing a service from Loadbalancer to ClusterIP, Syncer cannot sync this service to the host cluster #2248

Open
Lanyujiex opened this issue Oct 30, 2024 · 1 comment
Labels

Comments

@Lanyujiex
Copy link

What happened?

Syncer cannot sync this service to the host cluster

What did you expect to happen?

host cluster service can be updated to ClusterIP

How can we reproduce it (as minimally and precisely as possible)?

set a service with LoadBalancer, and then the service given a ingressIP. change service.Type to ClusterIP.
You will see that the service in host cluster can't be sync to ClusterIP.

Anything else we need to know?

logs:
2024-10-30 02:47:11 DEBUG service.abc-c-1730193780615-9a045 services/syncer.go:90 Updating object with: {"status":{"loadBalancer":{"ingress":[{"ip":"1.1.1.1","ipMode":"VIP"}]}}} {"component": "vcluster"}
2024-10-30 02:47:11 ERROR controller/controller.go:324 Reconciler error {"component": "vcluster", "controller": "service", "namespace": "default", "name": "abc-c-1730193780615-9a045", "reconcileID": "d7c600e5-7e05-421b-a55f-c5dfe51ea974", "error": "Service "abc-c-1730193780615-9a045" is invalid: status.loadBalancer.ingress: Forbidden: may only be used when spec.type is 'LoadBalancer'"}

Host cluster Kubernetes version

v1.30.3

vcluster version

I have tried 0.20.1 0.20.2 and the latest-20241029

VCluster Config

just helm install with k8s default.

@Lanyujiex
Copy link
Author

Has anyone encountered this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant