k8s之kubectl常用命令
时间:2020-03-05 20:32:18
收藏:0
阅读:87
node相关
kubectl get nodes -o wide
kubectl describe node node01
容器命令
kubectl get pods -A -o wide
kubectl describe pod edgedns-xxx -n openname
kubectl exec -it pod_name /bin/sh
kubectl exec mypod -c pod -it -- /bin/sh
kubectl logs mypod -f -n openname
原文:https://www.cnblogs.com/embedded-linux/p/12422447.html
评论(0)