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
时间: 2024-10-04 12:04:31