Merge pull request #30110 from sftim/20211016_add_now_delete_to_cheat_sheet
Add immediate pod deletion to cheat sheet
This commit is contained in:
@@ -290,6 +290,7 @@ kubectl scale --replicas=5 rc/foo rc/bar rc/baz # Scale multip
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl delete -f ./pod.json # Delete a pod using the type and name specified in pod.json
|
kubectl delete -f ./pod.json # Delete a pod using the type and name specified in pod.json
|
||||||
|
kubectl delete pod unwanted --now # Delete a pod with no grace period
|
||||||
kubectl delete pod,service baz foo # Delete pods and services with same names "baz" and "foo"
|
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 delete pods,services -l name=myLabel # Delete pods and services with label name=myLabel
|
||||||
kubectl -n my-ns delete pod,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,
|
||||||
|
|||||||
Reference in New Issue
Block a user