Open akbarkn opened 2 years ago
@akbarkn thanks for creating this issue! vcluster currently only handles the case that the host cluster is setting the load balancer ip, so setting it inside the vcluster only works on creation as values are copied to the host cluster for creation. But we might also want to allow setting it from inside the vcluster.
@FabianKramm Thanks for the answer. Nice to hear that you will handle the case in the future.
@FabianKramm I am able to replicate the same, can you please assign this bug to work on!
@sandeep540 Are you still working on this issue? If you got blocked and need help, please don't hesitate to reach out to us in vcluster channel in our Slack.
Hi @matskiv , No I am currently not working on this! you can reassign it to someone
What happened?
I'm trying to create and edit a service from the cluster with
LoadBalancer
type. The host is using Calico and Metallb for the network. Here is the Metallb configmap:Helm values:
The service is successfully created and the ip is assigned at the first time. But, if I tried to edit the service and change the IP from vcluster, it's not getting synced with the host.
Here I can see the service is created in the vcluster
and also host
But, after editing
spec.loadBalancerIP
(usingkubectl edit
orkubectl apply
orkubectl patch
) from the vcluster to192.168.56.11
, The IP is not getting changed both in the cluster and host.host:
This is what I got from
kubectl --kubeconfig kubeconfig get events
If I change the value from the host, it works as expected:
host:
What did you expect to happen?
The load balancer IP should be changed as specified if the value is edited from vcluster.
How can we reproduce it (as minimally and precisely as possible)?
Anything else we need to know?
The host using Calico and Metallb
Host cluster Kubernetes version
Host cluster Kubernetes distribution
vlcuster version
Vcluster Kubernetes distribution(k3s(default)), k8s, k0s)
OS and Arch