Skip to content

Kubernetes常用命令

Kubernetes集群常用命令

1.1、获取集群当前名称空间下Pod状态

Section titled “1.1、获取集群当前名称空间下Pod状态”
Terminal window
kubectl get pods

1.2、获取所有名称空间下Pod状态

Section titled “1.2、获取所有名称空间下Pod状态”
Terminal window
kubectl get pod --all-namespaces
Terminal window
kubectl get pods --all-namespaces -o wide |grep nodename

https://help.aliyun.com/document_detail/100251.html 关于垃圾产生及回收,您可以看下这篇文章 https://www.kubernetes.org.cn/4508.html