Skip to content

Commit

Permalink
a small fix in the delete all pods (#16824)
Browse files Browse the repository at this point in the history
There was a typo in kubectl -n my-ns delete pod,svc --all
  • Loading branch information
ahmadbanijamali authored and k8s-ci-robot committed Oct 14, 2019
1 parent 8a1a9e9 commit 57047b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/reference/kubectl/cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,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
```
Expand Down

0 comments on commit 57047b2

Please sign in to comment.