k8s_pod_基本操作

kubectl create -f k8s_pod.yml

kubectl get pods

kubectl get pods -o wide

kubectl get pods [NAME] -o wide

kubectl get pods -o wide -l app=[NAME]

kubectl get pods -o wide --namespace=[NAME]

kubectl delete pods

kubectl describe pods

kubectl replace --force -f k8s_pod.yml

 

posted @ 2020-04-07 11:25  Le1543  阅读(234)  评论(0编辑  收藏  举报