This article provides a manual procedure to remove orphaned Tanzu Mission Control (TMC) SaaS components from TKGS or VKS clusters for environments where:
This behavior is expected when a management platform is retired. Since the Tanzu Mission Control (TMC) SaaS console is decommissioned and unreachable, the automated unregistration workflows do not initiate the removal of local cluster components cannot be initiated.
Consequently, the TMC agent extensions, Custom Resource Definitions (CRDs), and the vmware-system-tmc namespace remains on the workload cluster as orphaned resources. These local artifacts must be manually purged to ensure the cluster is in a clean state for any future management operations.
kubectl get cluster <cluster_name> -n <example_namespace> -o yaml"run.tanzu.vmware.com/agent-uid"
"run.tanzu.vmware.com/vmware-system-tmc-cluster-group"
"run.tanzu.vmware.com/vmware-system-tmc-applied"
"run.tanzu.vmware.com/vmware-system-tmc-managed"
"run.tanzu.vmware.com/tmc-already-attached"
"run.tanzu.vmware.com/proxy-name"
"run.tanzu.vmware.com/image-registry"
"run.tanzu.vmware.com/auto-scaling"
"run.tanzu.vmware.com/auto-scaler-status"
"run.tanzu.vmware.com/kcp-status"
"run.tanzu.vmware.com/nodepool-status"
kubectl patch cluster <cluster_name> --type=merge -p '{"metadata":{"annotations":{"run.tanzu.vmware.com/agent-uid":null}}}'kubectl patch cluster <cluster_name> -n <example_namespace> --type=merge -p '{"metadata":{"annotations":{"run.tanzu.vmware.com/agent-uid":null,"run.tanzu.vmware.com/vmware-system-tmc-cluster-group":null,"run.tanzu.vmware.com/vmware-system-tmc-applied":null,"run.tanzu.vmware.com/vmware-system-tmc-managed":null}}}'kubectl delete crd extensions.clusters.tmc.cloud.vmware.comkubectl delete crd agents.clusters.tmc.cloud.vmware.comkubectl delete crd extensionresourceowners.clusters.tmc.cloud.vmware.comkubectl delete crd extensionintegrations.clusters.tmc.cloud.vmware.comkubectl delete crd extensionconfigs.intents.tmc.cloud.vmware.comkubectl delete clusterrole extension-updater-clusterrole extension-manager-role agent-updater-role vmware-system-tmc-psp-agent-restrictedkubectl delete clusterrolebinding extension-updater-clusterrolebinding extension-manager-rolebinding agent-updater-rolebinding vmware-system-tmc-psp-agent-restrictedkubectl delete psp vmware-system-tmc-agent-restrictedkubectl delete namespace vmware-system-tmc