kubernetes命令速查
查询
#查看所有Pods
[root@master ~]# kubectl get pod -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-flannel kube-flannel-ds-c4jkr 1/1 Running 0 40d
#详细查询
[root@master ~]# kubectl get pod -A -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
kube-flannel kube-flannel-ds-c4jkr 1/1 Running 0 40d 192.168.0.93 node02 <none> <none>