Answers for "kubectl delete all from namespace"

3

kubectl delete all pods

kubectl delete --all pods
Posted by: Guest on May-10-2020
0

kubectl delete all from namespace

kubectl delete all --all -n {namespace}
Posted by: Guest on September-15-2021
1

delete all pods in default namespace

kubectl delete --all pods --namespace default
Posted by: Guest on June-22-2020
1

kubernetes force delete namespace

(
NAMESPACE=your-rogue-namespace
rm temp.json
kubectl proxy &
kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE/finalize
kill $(lsof -t -i:8001)
)
Posted by: Guest on April-15-2021

Code answers related to "kubectl delete all from namespace"

Browse Popular Code Answers by Language