1.

what does kube-proxy do?

Answer»

kube-proxy does 2 things

  • for every SERVICE, open a random port on the node and proxy that port to the Service.
  • install and maintain iptables rules which capture ACCESSES to a virtual IP:port and redirect those to the port in (1)

The kube-proxy is a component that manages host sub-netting and makes services available to other components.Kubeproxy handles network communication and shutting down master does not stop a node from serving the traffic and kubeproxy works, in the same way, using a service. The iptables will ROUTE the connection to kubeproxy, which will then proxy to one of the pods in the service.kube-proxy translate the destination address to whatever is in the endpoints.



Discussion

No Comment Found

Related InterviewSolutions