首页 > 其他 > 详细

k8s常用命令

时间:2020-12-09 18:36:08      阅读:31      评论:0      收藏:0      [点我收藏+]
kubectl get nodes
kubectl get nodes -o wide
kubectl get pods -o wide
kubectl get pod,svc
kubectl get nodes 
kubectl get node
kubectl get no
kubectl get nodes k8s-node01
kubectl --help
kubectl get --help
kubectl help get
kubectl get pod,svc
kubectl get nodes
kubectl get cs
systemctl restart kubelet.service
kubectl help create
kubectl api-versions 
kubectl api-resources 
kubectl create deployment web --image=nginx -o yaml --dry-run
kubectl create deployment web --image=nginx -o yaml --dry-run > my1.yml
kubectl get deployments.apps
kubectl get deployments.apps nginx -o yaml  > my2.yml
kubectl describe nodes k8s-master | grep taint
kubectl scale deployment nginx --replicas=5
kubectl delete deployments.apps nginx 
kubectl taint node k8s-node01 env_role=prod:NoSchedule
kubectl describe nodes k8s-node01 | grep -i taint
kubectl create deployment nginx --image=nginx
kubectl taint node k8s-node01 env_role=prod:NoSchedule-

k8s常用命令

原文:https://www.cnblogs.com/Richardo-M-Q/p/14109777.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!