kubectl get pod
kubectl get pod -n kube
kubectl get rc,svc
kubectl get pod,svc -o wide
kubectl get pod
kubectl describe node 192.168.0.212
kubectl describe pod
eg:
kubectl describe pod redis-master-tqds9
kubectl create -f pod.yaml
kubectl apply -f pod.yaml
kubectl delete -f pod.yaml
kubectl delete pod,svc -l name=
kubectl delete namespace xxx
kubectl delete pod --all
kubectl get endpoints
kubectl get namespace
kubectl exec
kubectl exec
kubectl exec
kubectl exec -it
eg:
kubectl exec -it redis-master-cln81 -- bash
kubectl logs
kubectl logs -f
log_pod release-xxxx 10000 > xxxx.txt
原文:https://www.cnblogs.com/aric2016/p/12549582.html