Monday 19 December 2022

How Kube-Proxy handles the traffic between the containers and the virtual machine by creating IP table rules in Kubernetes.


kubectl get svc

#to view any traffic sent to the IP sent to the following Rule

sudo iptables -S -t nat | grep IP

#inspect the rule

#the above rule diverts the traffic to the VM IP

#find the container using kube-apiserver

docker ps

#monitor kube-apiserver container

docker top container_id

#inspect the container to confirm IP used

docker inspect fcec33b58cbb | grep "address="


No comments:

Post a Comment