deleting a stuck namespace
This commit is contained in:
parent
38d8132ae3
commit
c59bfa9b0a
@ -39,6 +39,8 @@
|
||||
* [Node maintenance](#node-maintenance)
|
||||
* [What happens if a node goes down?](#what-happens-node-down)
|
||||
* [Dealing with disruptions](#disruptions)
|
||||
* [Troubleshooting](#troubleshooting)
|
||||
* [Deleting a stuck namespace](#ts-delete-stuck-namespace)
|
||||
|
||||
# kubectl - BASH autocompletion <a name="user-content-kubectl-bash-autocompletion"></a>
|
||||
For current shell only:
|
||||
@ -881,3 +883,10 @@ node/k3s-node2 uncordoned
|
||||
* https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
|
||||
* https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/
|
||||
|
||||
# Troubleshooting <a name="user-content-troubleshooting"></a>
|
||||
## Deleting a stuck namespace <a name="user-content-ts-delete-stuck-namespace"></a>
|
||||
```
|
||||
kubectl get namespace "stucked-namespace" -o json \
|
||||
| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
|
||||
| kubectl replace --raw /api/v1/namespaces/stucked-namespace/finalize -f -
|
||||
```
|
||||
Loading…
Reference in New Issue
Block a user