查看yam配置
1.获取deploy列表 kubectl get deploy -n sunlogin --context=sunlogin-k8s-context 2.查看指定deploy配置 kubectl get deploy sunlogin-tag -o yaml -n sunlogin --context=sunlogin-k8s-context
动态扩容缩容
kubectl scale deploy --replicas=3 nginx -n sunlogin --context=sunlogin-k8s-context
标签:sunlogin,deploy,--,context,常用命令,k8s,kubectl From: https://www.cnblogs.com/LQBlog/p/17751619.html