Unable to start an upgrade for a vSphere Kubernetes Service (VKS) cluster because the system returns an error similar to one of the below:
Error: upgrade cannot be initiated as cluster's AddonsReconciled condition is not True.
Addon <addon name> is not ready: kapp: Error: Timed out waiting after 30s for resources: [deployment/<addon name> (apps/v1) namespace: <addon namespace>]
"admission webhook "capi.validating.tanzukubernetescluster.run.tanzu.vmware.com" denied the request: upgrade cannot be initiated as cluster's AddonsReconcile condition is not True. Message: Addon <addon name> is not ready: Reason: Reconciling"This error message can note replicaset instead of a deployment depending on the addon and progress:
Error: Timed out waiting after 30s for resources: [replicaset/<addon name with id> (apps/v1) namespace: <addon namespace>]
vSphere Supervisor
vSphere Kubernetes Service (VKS)
System upgrade pre-checks have found that one or more addons within the affected VKS cluster are not healthy.
The specific error calls out the particular unhealthy addon and its namespace within the affected VKS cluster.
Addons correspond to installed packages (PKGI) that are manually installed or that are automatically installed and upgraded based on the vSphere Kubernetes Release (VKR) version.
The deployment in the error message must be investigated further to understand why it is failing.
kubectl get deployment,replicaset -n <addon namespace>
kubectl describe deployment -n <addon namespace> <deployment name>
kubectl describe replicaset -n <addon namespace> <replicaset name>
kubectl get pods -n <addon namespace>
kubectl describe pod -n <addon namespace> <pod name>
| Error | Explanation and Recommendations |
| Warning FailedCreate - Error creating: pods "<addon name>" is forbidden: violates PodSecurity: <podSecurity setting> - pod or container <security pod> must set <SecurityContext requirement> | The noted <security pod> is preventing the addon's pod(s) from creating. Validate that the noted <security pod> is properly set to not block the creation of the addon. NOTE: VMware by Broadcom is not responsible for and does not provide support for third party applications. |
Pod in Pending state with Warning FailedScheduling 0 nodes are available
| A pod in Pending state is waiting for a node that matches its requirements. These requirements can include requested resources, tolerations and anti-affinity rules. The error message from describing the pod provides details on these requirements. Describing the pod will also provide details on the pod's configuration for these requirements. |
Starting in VKS 3.6, a --force option was added to allow VKR upgrades to progress when the addon's status is not Ready.
Note: This force option only applies to manually installed addons/standard packages. It will not apply to automatically installed addons which are system critical and packaged with each VKR version.
Fixed Issues under VKS 3.6 Release Notes: vSphere Kubernetes Service 3.6.0+v1.35
Japanese version: クラスターの AddonReconciled 条件が True ではないため、VKR アップグレードを開始できません。