k8s常用命令

1、创建pod

vim nginx-deploy.yaml

kubectl create -f nginx-deploy.yaml

2、删除pod

查看pod信息

kubectl get po

kubectl describe po web-0 

kubectl delete StatefulSet web

kubectl get rs
kubectl get deployment

kubectl delete deployment hpa-demo

你可能感兴趣的:(k8s常用命令)