From 9d3438b5e36a66d9701ab73b94f6eb5ddd2d4738 Mon Sep 17 00:00:00 2001 From: Ahmad Bani jamali Date: Fri, 11 Oct 2019 11:23:16 +0300 Subject: [PATCH] a small fix in the delete all pods There was a typo in kubectl -n my-ns delete pod,svc --all --- content/en/docs/reference/kubectl/cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index b30d633790d4d..b6cfadfbcc2d9 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -272,7 +272,7 @@ kubectl scale --replicas=5 rc/foo rc/bar rc/baz # Scale multip kubectl delete -f ./pod.json # Delete a pod using the type and name specified in pod.json kubectl delete pod,service baz foo # Delete pods and services with same names "baz" and "foo" kubectl delete pods,services -l name=myLabel # Delete pods and services with label name=myLabel -kubectl -n my-ns delete po,svc --all # Delete all pods and services in namespace my-ns, +kubectl -n my-ns delete pod,svc --all # Delete all pods and services in namespace my-ns, # Delete all pods matching the awk pattern1 or pattern2 kubectl get pods -n mynamespace --no-headers=true | awk '/pattern1|pattern2/{print $1}' | xargs kubectl delete -n mynamespace pod ```