Cannot delete addon harbor, since it is in deleting phase
2.3
Kubernetes content in the affected namespace have finalizers remaining that need to be manually removed.
capv
Identify the harbor tcaclusteraddon associated to the namespace associated to the workload cluster
kubectl get tcaclusteraddons -n <namespace>
Edit tcaclusteraddons
kubectl edit tcaclusteraddons
<addonName>
-n <namespace>
Delete the 2 lines associated to the finalizers
e.g.
finalizers:
- machine.cluster.x-k8s.io
Delete workload cluster from the UI
Delete the VIM associated to the workload cluster from the UI
Describe the namespace
kubectl describe ns <namespace>
The NamespaceFinalizersRemaining
section will detail the resources that remain and need to be removed manually.
Note: Focus on the following resources: machines
, vspheremachine
, and vspherevm
e.gSome content in the namespace has finalizers remaining: machine.cluster.x-k8s.io in 3 resource instances
Some content in the namespace has finalizers remaining: vspheremachine.infrastructure.cluster.x-k8s.io in 3 resource instances
Some content in the namespace has finalizers remaining: vspherevm.infrastructure.cluster.x-k8s.io in 3 resource instances
List all resource type found in the namespace, based on the finalizers detailed when describing the namespace:
e.g. kubectl get machines -A -n <namespace>
Edit the resource
e.g. kubectl edit machines <machineName> -n <namespace>
Delete the 2 lines associated to the finalizers
e.g.
finalizers:
- machine.cluster.x-k8s.io
Repeat steps 1-4 until the resources described in the namespace (machines
, vspheremachine
, and vspherevm
) successfully terminates.