API Service Preventing Namespaces from Deletion
Problem
- Namespace is stuck in Terminating state
- Removing the finalizer from the namespace shows below error:
"type":"NamespaceDeletionDiscoveryFailure","status":"True","lastTransitionTime":"2021-10-04T21:49:02Z","reason":"DiscoveryFailed","message":"Discovery failed for some groups, 1 failing: unable to retrieve the complete list of server APIs: admission.voyager.appscode.com/v1beta1: the server is currently unable to handle the request"}
Environment
- Platform9 Managed Kubernetes - v5.0 and Higher
Cause
apiservice
is preventing the namespace deletion
Resolution
Delete the apiservice using below command
# kubectl delete apiservice/"service_name"
Example: kubctl delete apiservice/"v1beta1.admission.voyager.appscode.com"
Was this page helpful?