-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can't access pods by service cluster ip except you access from the node where pod in. #1958
Comments
There are many open issues about this across multiple repos, but you can follow the thread from here: #1266 (comment) tl;dr vxlan is broken at the moment due to a kernel bug; you can either switch to host-gw or work around it by running an ethtool command (that needs to be re-run every time hosts are rebooted) on every node. |
@brandond wrote:
I had forgotten about the vxlan issue and assumed this was related the ongoing iptables/nftables issue(s) that should be solved via #1914. |
@dweomer could be that too. Between vxlan and nftables things can be a little rough to get going if you're new. |
thanks.
vim /etc/systemd/system/k3s.service
systemctl daemon-reload
systemctl restart k3s
[root@bowser1704 ~]# cat /var/lib/rancher/k3s/agent/etc/flannel/net-conf.json
{
"Network": "10.42.0.0/16",
"Backend": {
"Type": "host-gw"
}
} But it still doesn't work. [root@bowser1704 ~]# kubectl get svc -n food
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
redis ClusterIP 10.43.105.118 <none> 7388/TCP 48d
food-backend ClusterIP 10.43.105.114 <none> 8080/TCP 48d
[root@bowser1704 ~]# curl http://10.43.105.114:8080/sd/health
^C
[root@bowser1704 ~]# kubectl get ep -n food
NAME ENDPOINTS AGE
food-backend 10.42.1.4:8080 48d
redis 10.42.0.10:6388 48d
[root@bowser1704 ~]# curl http://10.42.1.4:8080/sd/health
OK
[root@bowser1704 ~]# Do you have any suggestions? |
sorry. Do you have any suggestions? |
similar to #1638 |
Version:
k3s version v1.17.5+k3s1 (58ebdb2)
K3s arguments:
/usr/local/bin/k3s server
Describe the bug
Can't access pods by service cluster ip except you access from the node where pod in.
But i can access by the pod ip
To Reproduce
moving the pod from other nodes to master.
Expected behavior
accessing any pod in any node.
Actual behavior
can't access.
Additional context / logs
I check the ip-tables, all the nodes have the same rules.
I use flannel and vxlan as the flannel-backend.
The text was updated successfully, but these errors were encountered: