Sometimes kubectl get pod some-pod-1234abc
returns an error like: Error from server (NotFound): pods "ip-192-168-55-196.us-east-1.compute.internal" not found
. This is surprising because the error references a node, not a pod name. This happens very rarely, and seems to be (I've yet to verify this with certainty) happening only for pods that were recently deleted.
What conditions could cause this to happen? this is a Kubernetes 1.20 cluster in AWS EKS, using Spot instances. I am not concerned with the pods being deleted, but am trying to understand why the node name is returned by kubectl
in the message, instead of the pod name.