kubectl get all
kubectl get all -n default
kubectl get all --namespace=default
kubectl get pod
kubectl get pod -n kube-system
kubectl get node
kubectl get node -o wide
kubectl get namespace:获取所有namespace
kubectl create namespace new-namespace:创建namespace
kubectl delete namespace new-namespace:删除namespace
kubectl get deployment
kubectl get deployment -w:以交互模式查看对象的变化,按ctrl+c退出交互模式
kubectl get deployment -o wide:查看详细信息
kubectl create deployment mydep --image=nginx
kubectl describe deployment mydep:查看deployment描述
kubectl apply -f nginx-deployment.yaml:应用yaml文件