After initiating a workload cluster upgrade from VKR v1.33.x to v1.34.X, the upgrade is stuck because the workload cluster's antrea-controller is failing to start.
While connected to the affected workload cluster context, one or more of the following symptoms are observed:
"Container runtime network not ready"
networkReady="NetworkReady=false reason:NetworkPluginNotReady
message:Network plugin returns error: cni plugin not initialized"kubectl get pods -n kube-systemDescribing the antrea-controller pod shows the following image pull error message:
kubectl describe pod -n kube-system <antrea-controller-pod>
Back-off pulling image \\\"localhost:5000/tkg/packages/core/antrea@sha256:<sha>\\\": ErrImagePull: rpc error: code = NotFound desc = failed to pull and unpack image \\\"localhost:5000/tkg/packages/core/antrea@sha256:<sha>\\\": failed to resolve reference \\\"localhost:5000/tkg/packages/core/antrea@sha256:<sha>\\\": localhost:5000/tkg/packages/core/antrea@sha256:<sha>: not found\
Couldn't get configMap kube-system/antrea-config-ver-#: configmap "antrea-config-ver-#" not found.
kubectl get pods -n kube-system
kubectl get replicaset -n kube-system | grep antrea
NAME DESIRED CURRENT READY
antrea-controller-<id-a> 1 # #
antrea-controller-<id-b> 1 # #
This behaviour has also been noticed when doing a simultaneous upgrade of the ClusterClass and VKr version.
vSphere Supervisor
VKR upgrade from v1.33.X to v1.34.X
Antrea-controller is unable to start properly due to a race condition on its start-up.
This issue has been observed more frequently in workload clusters using a single control plane node.
This issue will be resolved in a future VKS version.
Do not delete the antrea-controller deployment without performing the pre-flight checks below. If the antrea-controller fails to restart (due to third-party webhooks or node scheduling mismatches), its APIServices will lose their endpoints. This may triggers a continuous status-update loop from the kube-apiserver, which can exhaust etcd database space and cause a catastrophic cluster crash within 10 minutes.
During an upgrade, unreachable webhooks (e.g., Kyverno, OPA Gatekeeper) will block the recreation of pods and deployments.
kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations
Action: Look for non-native webhooks. If strict policy webhooks are present and failing, you must temporarily bypass them or exempt the kube-system namespace before proceeding. (Reference: KB 387563 for resolving third-party webhook blockages during upgrades).
Action: If you see errors like FailedCreate: admission webhook denied the request, stop. Resolve the webhook failure before continuing.
Once you have verified webhooks will not block resource creation, proceed with forcing the controller to recreate:
If the antrea-controller pod is recreated but gets stuck in a Pending state, it is likely due to a Node Selector mismatch (the pod is trying to schedule on an upgraded node that is currently offline or stuck).
If you cannot get the antrea-controller pod into a Running state and the deployment remains broken, the kube-apiserver will begin spamming etcd with status updates for the missing Antrea endpoints. This may cause a cluster-wide NOSPACE crash within minutes.
Action: delete the unreachable Antrea APIServices to protect the cluster. Run the following command to safely remove the v1alpha1.stats.antrea.io, v1alpha2.controlplane.antrea.io, and v1alpha3.controlplane.antrea.io services:
kubectl delete apiservice v1alpha1.stats.antrea.io v1alpha2.controlplane.antrea.io v1alpha3.controlplane.antrea.io |
Note: Refer to your standard etcd recovery and APIService remediation runbooks(for example: 411644) if further database defragmentation is required.