Search code examples
kuberneteskube-proxy

kube-proxy reports wrong ip address


In my kubernetes cluster, each node is a virtualbox vm with two NICs, eth0 for NAT and eth1 for Host-Local communicating.

kubectl get pod --all-namespaces -o wide shows

enter image description here

We can see k8s-3 and k8s-4 reports correct IPs while k8s-2 doesn't.

I've tried to add --bind-address=192.168.99.202 in k8s-2's kube-proxy.yaml but it just don't work.

Anyone has any advice?


Solution

  • https://github.com/kubernetes/kubernetes/issues/44702

    Problem solved by passing --node-ip= to kubelet.