kubectl stop all pods code example
Example 1: stop all kubernetis pods
#All pods
kubectl delete --all deployments
Example 2: kubectl delete all pods
kubectl delete --all pods
Example 3: delete all pods in default namespace
kubectl delete --all pods --namespace default
Example 4: kubectl get pod by node
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>
Example 5: kubectl describe to yaml
kubectl describe <type> <name> -o yaml