VKS guest cluster upgrade fails due to kapp resource ownership conflict
book
Article ID: 449524
calendar_today
Updated On:
Products
VMware vSphere Kubernetes Service
Issue/Introduction
Upgrade of VKS guest cluster from 1.32 to 1.33 fails
The following error appears in the cluster status description: Addon Kapp-Controller is not ready: kapp: Error: Ownership errors: - Resource 'configmap/kapp-controller-config (v1) namespace: tkg-system' is already associated with a different label 'kapp.k14s.io/app=####'
Environment
VMware Kubernetes Service (VKS)
Cause
The kapp-controller-configConfigMap in the tkg-system namespace contains stale kapp.k14s.io/app and kapp.k14s.io/association- labels from a previous reconciliation
The new upgrade process uses a different tracking ID and refuses to modify resources it does not explicitly own
Resolution
Set the kubectl context to the affected guest cluster.
Strip the conflicting ownership and association labels from the kapp-controller-config ConfigMap: