let us start with single node kubernetes cluster
node has an IP 192.168.1.2
if this is minikube then we talking about minikube virtual machine inside your hypervisor
unlike dockers where IP address is assigned to dockers, in kubernetes IP address is assigned to Pods
so when kubernetes is initially configured we create an internal private network with the address.
10.244.0.0 and all pods are attached to it.
when we deploy pods they all get a separate ip address.
The pods can communicate to each other using this internal ip address bt accessing this ip address for any work may not be a good idea as its subject to change when pods are recreated.
Its kinda easy to understand networking on a single cluster but how does it work when there are multiple nodes
node has an IP 192.168.1.2
if this is minikube then we talking about minikube virtual machine inside your hypervisor
unlike dockers where IP address is assigned to dockers, in kubernetes IP address is assigned to Pods
so when kubernetes is initially configured we create an internal private network with the address.
10.244.0.0 and all pods are attached to it.
when we deploy pods they all get a separate ip address.
The pods can communicate to each other using this internal ip address bt accessing this ip address for any work may not be a good idea as its subject to change when pods are recreated.
Its kinda easy to understand networking on a single cluster but how does it work when there are multiple nodes
Comments
Post a Comment