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

Loadbalancer IP does not work with cilium #65

Open
nitang22 opened this issue May 6, 2024 · 6 comments
Open

Loadbalancer IP does not work with cilium #65

nitang22 opened this issue May 6, 2024 · 6 comments

Comments

@nitang22
Copy link

nitang22 commented May 6, 2024

Hi,
I have a very unique use case here. The loadbalancer IP does not working with Cilium as CNI using kubeProxyReplacement=true as shown in those setup here and here. It works using kube-proxy.

I can't pinpoint exactly the issue but I get a connection reset by peer. Seems like it can reach the ip but cannot reach the envoy proxy in cilium

image

cloud-provider-kind.log

Tried the same setup on AKS, works fine.

@aojea
Copy link
Contributor

aojea commented May 12, 2024

Interesting , have you tried to connect to the nodePort in one of the nodes and see if that works? (30929 in your example)

@aojea
Copy link
Contributor

aojea commented May 18, 2024

No answer, so I'll close it, feel free to reopen if you can provide more information

@aojea aojea closed this as completed May 18, 2024
@nitang22
Copy link
Author

nitang22 commented May 21, 2024

nodePort works, it comes from the integration between kind and cloud-provider-kind.
Can't reopen the issue on my side, can you do it? @aojea

@aojea
Copy link
Contributor

aojea commented May 21, 2024

nodePort works, it comes from the integration between kind and cloud-provider-kind. Can't reopen the issue on my side, can you do it? @aojea

/reopen

absolutely

It is interesting it fails since the packet that arrives to the node comes proxied from the container and is directed to the nodeport ... maybe some cilium config about nodeports that is not liking that flow? but that will be a non-standard behavior most likely

@aojea aojea reopened this May 21, 2024
@nitang22
Copy link
Author

That's the tricky part, couldn't test on other emulator like minikube since it does not support deactivating the kubeproxy. On Azure, it works. I will try to test on other emulator as well.

@danwinship
Copy link
Contributor

Random guess: Cilium is probably assuming that since the LoadBalancerStatus has an IP rather than a Hostname, that that means it's using VIP-mode load balancing like GCE rather than Proxy-mode load balancing like AWS. Which is to say, Cilium probably hasn't been updated for KEP-1860 yet. (Despite the low KEP number, this is actually a recent feature.)

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

No branches or pull requests

3 participants