Kubernetes常用命令

1 min read

Kubernetes集群常用命令

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

kubectl get pods

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

kubectl get pod --all-namespaces

1.3、查询Pod所在节点

kubectl get pods --all-namespaces -o wide |grep nodename

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

Last updated on 2019-10-11