Command line tool (kubectl) | Kubernetes

PHOTO EMBED

Fri May 31 2024 22:24:45 GMT+0000 (Coordinated Universal Time)

Saved by @calazar23

# Delete a pod using the type and name specified in the pod.yaml file.

kubectl delete -f pod.yaml



# Delete all the pods and services that have the label '<label-key>=<label-value>'.

kubectl delete pods,services -l <label-key>=<label-value>



# Delete all pods, including uninitialized ones.

kubectl delete pods --all
content_copyCOPY

https://kubernetes.io/docs/reference/kubectl/