Service inaccessible from the node it runs on #598
-
Hey, I'm currently working on deploying traefik with flannel on k3s, using in-cluster mode. The traefik service successfully gets assigned an IP by loxilb and is accessible from remote machines. However, I'm facing a problem with accessing services exposed via an ingress when trying to access them from within the same node or even when attempting to curl from the node that hosts the pod. I keep receiving a "connection refused" error. I've also checked the DNS resolution on the node and everything seems fine. The kube-loxilb runs with the following args: Any assistance on this matter would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Currently, the VIP is available via serviceLB (inside K8s node) if the VIP subnet is not local to the host and (hypothetically) reachable via some route. For example host is (eth0) 192.168.10.1/24 and VIP is 10.10.10.1 and say a default route exists via 192.168.10.254(gw). it might be too complex but loxilb in its default mode expects external traffic (reverse proxy). But still some users have worked with the above scheme. Meanwhile, we are working on a permanent solution as there seems to be a genuine requirement for this. |
Beta Was this translation helpful? Give feedback.
-
The support for connecting to VIP from within the node for in-cluster mode is now available (although in beta). You need to redeploy loxilb daemonset (delete and reapply) using this yaml . No need for any change in kube-loxilb. |
Beta Was this translation helpful? Give feedback.
The support for connecting to VIP from within the node for in-cluster mode is now available (although in beta). You need to redeploy loxilb daemonset (delete and reapply) using this yaml . No need for any change in kube-loxilb.