Difference between revisions of "Kubernetes Delete Namespace"
Jump to navigation
Jump to search
(Created page with "kubectl api-resources --verbs=list --namespaced -o name \ > | xargs -n 1 kubectl get --show-kind --ignore-not-found -n rook-ceph") |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | kubectl api-resources --verbs=list --namespaced -o name | + | ``` |
| − | + | kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -n rook-ceph | |
| + | |||
| + | |||
| + | kubectl -n rook-ceph patch cephclusters.ceph.rook.io rook-ceph --type merge -p '{"metadata":{"finalizers": [null]}}' | ||
| + | kubectl delete cephcluster.ceph.rook.io/rook-ceph -n rook-ceph | ||
| + | ``` | ||
| + | |||
| + | https://stackoverflow.com/questions/55853312/how-to-force-delete-a-kubernetes-namespace | ||
Latest revision as of 23:26, 26 June 2021
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -n rook-ceph
kubectl -n rook-ceph patch cephclusters.ceph.rook.io rook-ceph --type merge -p '{"metadata":{"finalizers": [null]}}'
kubectl delete cephcluster.ceph.rook.io/rook-ceph -n rook-ceph
https://stackoverflow.com/questions/55853312/how-to-force-delete-a-kubernetes-namespace