kubectl exec -it pod-name -- /bin/bash
kubectl get pods --all-namespaces
kubectl create namespace my-namespace
kubectl apply -f imperative/pod.yml -n my-namespace
kubectl get pods -n my-namespace
kubectl delete pods --all
kubectl get nodes
kubectl drain node-2
or kubectl drain node-2 --ignore-daemonsets
kubectl uncordon node-2
kubectl get pods -w -l app=website
for i in 0 1 2; do kubectl exec zk-$i -- hostname; done
Kitematic is a free Docker GUI