The Daily Shaarli
Pour voir la santé d'un cluster Kubernetes. Ce tool est Read Only.
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/
