kubectl get deploy nginx -o=yaml > 1.yaml
kubectl create deployment web --image=nginx -o yaml --dry-run >> nginx-rc.yaml
kubectl get pod --all-namespaces
kubectl describe pod <Pod Name>
kubectl get namespaces
kubectl get nodes
kubectl create deployment web --image=nginx
kubectl scale deployment web --replicas=5
kubectl get pods -o wide
kubectl describe pods / kubectl describe pod [NAME]
kubectl delete deployment [name]
例:kubectl delete deployment nginx
kubectl get svc
kubectl delete svc nginx2 / kubectl delete servcie nginx2
kubectl get rc
kubectl delete rc mysql
kubectl exec -it <podName> -c <containerName> -n <namespace> -- shell comand
kubectl get cs
systemctl daemon-reload
systemctl restart kubelet
kubectl cluster-info
kubectl get componentstatuses
journalctl -u kubelet -f