kubernetes imperative commands cheat sheet code example
Example 1: kubectl get pod by node
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>
Example 2: kubectl describe to yaml
kubectl describe <type> <name> -o yaml
Example 3: imperative command kubectl update replicas count deployment
kubectl edit deployment/nginx-deployment
Example 4: imperative command kubectl update replicas count deployment
kubectl scale --replicas=<count> deployment/nginx-deployment