kubectl describe machine output for impacted nodes shows a state of Deleting with the message: Drain not completed yet ... delay likely due to Pods not terminating.Pulling image "localhost:5000/tkg/packages/core/antrea@sha256:########################".FailedKillPod warning: failed to "KillPodSandbox" ... plugin type="antrea" failed (delete): rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /var/run/antrea/cni.sock: connect: connection refused".VMware Cloud Foundation (VCF)
VMware vSphere Kubernetes Service (VKS)
The exact root cause is not known, as it can have several different reasons, such as a full root disk when the update was started. However, because the Antrea image is missing, the Antrea CNI cannot initialize. The kubelet is then unable to communicate with the CNI to destroy network sandboxes, preventing pods from terminating and blocking the node drain process required for the upgrade to proceed.
Manually export the required Antrea image from a healthy, upgraded node and import it into the failing node to restore CNI functionality.
Step 1: Preparation and Disk Space Verification
DrainingNode stage.df -h /Note: It can be the case that the node are in a reboot cycle after they are repeatedly attempted to be made ready. In that case you can pause the cluster before proceeding the next steps:
kubectl patch cluster <cluster-name> --type merge -p '{"spec":{"paused": true}}'
Step 2: Export Image from a Healthy Node
ctr -n k8s.io images list | grep -i antreactr -n k8s.io images export /tmp/antrea.tar [FULL_IMAGE_REFERENCE] ctr -n k8s.io images export /tmp/antrea.tar localhost:5000/tkg/packages/core/antrea@sha256:740c8fb1d450b77cd4e4172b77e657f9b9433106d929222c22b82b50ab555638chown vmware-system-user:vmware-system-user /tmp/antrea.tarStep 3: Import Image to the Impacted Node
scp [HEALTHY_NODE_IP]:/tmp/antrea.tar /tmp/antrea.tarctr -n k8s.io images import /tmp/antrea.tarStep 4: Cleanup
rm /tmp/antrea.tarStep 5: Unpause the cluster.
To speak with a customer representative or a Support Engineer see . Scroll to the bottom of the page and click on your respective region.