Vue normale

Reçu aujourd’hui — 19 février 2026 Strak.ch | Actu et liens en vrac

Stuck Kubernetes Finalizers

19 février 2026 à 13:43

Si un namespace ne veut vraiment pas se laisser supprimer, en état "Terminating":

kubectl get namespace mynamespace -o json > mynamespace.json

Edit the file and remove the finalizers field entirely, ensuring the JSON looks like this:

{
  "apiVersion": "v1",
  "kind": "Namespace",
  "metadata": {
    "name": "mynamespace"
  }
}

Then apply the modified JSON back to the API:

kubectl replace --raw "/api/v1/namespaces/mynamespace/finalize" -f mynamespace.json

Voir aussi https://blog.zwindler.fr/2020/03/23/supprimer-un-namespace-bloque-a-terminating/


Permalink
❌