After a worker node updates or reloads, why do duplicate nodes and pods appear?
Virtual Private Cloud Classic infrastructure
When you run kubectl get nodes
, you see duplicate worker nodes with the status NotReady
. The worker nodes with NotReady
have public IP addresses, while the worker nodes with
Ready
have private IP addresses.
Older clusters listed worker nodes by the cluster's public IP address. Now, worker nodes are listed by the cluster's private IP address. When you reload or update a node, the IP address is changed, but the reference to the public IP address remains.
Service is not disrupted due to these duplicates, but you can remove the old worker node references from the API server.
kubectl delete node <node_name1> <node_name2>