Hi,
Why can the kube-proxy
and the kube-router
pods get the same IP as my host? Neither of them has an associated service. How do get achieved this? Also, does this mean I can access these pods directly from my host?
Thanks
Hi,
Why can the kube-proxy
and the kube-router
pods get the same IP as my host? Neither of them has an associated service. How do get achieved this? Also, does this mean I can access these pods directly from my host?
Thanks
Both of those pods are running in the host network namespace. If you look at the pod definitions you can sse this:
hostNetwork: true
This is why the pod reports it’s IP as the same as the host.
Thanks a lot.
Can I ask why they have to connect to the host network? I think it is the first time seeing some pods using that network option.
They are running on the host network as they need to be able to configure networking at the host level.
For example kube-proxy needs to be able to create the ClusterIPs using iptables