chen
chen

Reputation: 4500

Kubernetes networking: is service information stored in every node's IPTable?

Can someone tell me why the service hop won't become a single point of failure?

In Kubernete Service, I see an hop of Service between the client and Pods: enter image description here

I guess all service's (let's say there are 5000 of services and each service has 3 Pods) routing info are stored in the IPTable of each node?

Upvotes: 0

Views: 43

Answers (1)

Chandra Sekar
Chandra Sekar

Reputation: 763

Kubernetes services connect a set of pods to an abstracted service name and IP address. Services provide discovery and routing between pods.

It depends upon the CNI which you are using and what type of network it will use. Every network plugin has a different approach for how a Pod IP address is assigned (IPAM), how iptables rules and cross-node networking are configured, and how routing information is exchanged between the nodes.

Upvotes: 1

Related Questions