Kubernetes -- Operations
Increase the disk size of StatefulSet PVC
1
2
3
kubectl edit pvc <pvc-name> -n <namespace>
kubectl delete statefulset --cascade=orphan <statefulset_name> -n <namespace>
# Then you can reapply the helm chart
Namespace Stuck in Terminating State
kubectl get namespace <ns> -o json > ~/tmp/tmp.json
- Edit above json and delete the items in the finalizer list.
- Run
kubectl proxy
in a new tab. curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/<ns>/finalize
This post is licensed under CC BY 4.0 by the author.