k8s accumulation of common commands

1. Review the pod and svc (and the same service)

kubectl get pods,svc

2. Review the details and pod way to json output

kubectl get po rabbitmq-56d4548f6d-r9tb6 -o json 

name // rabbitmq-56d4548f6d-r9tb6 check is the first step out of the pod of

3. Review the designated pod run on which node

kubectl get po rabbitmq-56d4548f6d-r9tb6 -o wide

  

Guess you like

Origin www.cnblogs.com/jiyang2018/p/11225630.html