Kubernetes Command

list pods:

kubectl get pods -o wide

get external ip of all nodes:

kubectl get nodes

list services sorted by name:

kubectl get services --sort-by=.metadata.name

show kubeconfig setting:

kubectl config view

show deployment:

kubectl get deployment

show namespace:

kubectl get namespace

restart deployment:

kubectl rollout restart deployment deploymentName

status of the PV: kubectl get pv

status of the PVCs: kubectl get pvc

留下评论

通过 WordPress.com 设计一个这样的站点
从这里开始