Skip to content

Instantly share code, notes, and snippets.

@michelleN
Created April 24, 2020 20:44
Show Gist options
  • Save michelleN/8f8be26ced4d361fe8e5bdfd7f1eb8c5 to your computer and use it in GitHub Desktop.
Save michelleN/8f8be26ced4d361fe8e5bdfd7f1eb8c5 to your computer and use it in GitHub Desktop.
namespace stuck in termination stage

Sometimes caused by apiservices running that no longer have backends. Confirm via kubectl:

$ k api-resources
error: unable to retrieve the complete list of server APIs: tap.linkerd.io/v1alpha1: the server is currently unable to handle the request

Solution is to delete relevant apiservice that no longer has backends: helm/helm#6361 (comment)

Then, remove finalizer from resource spec either via kubectl edit or

$ kubectl get namespace linkerd -o json > linkerd.json
# edit file and delete "kubernetes" line in finalizers
$ kubectl replace --raw "/api/v1/namespaces/linkerd/finalize" -f linkerd.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment