


























We find k8s-master node.Input the Command:
1kubectl scale --replicas=3 deploy my-test-deploy
1kubectl scale --replicas=1 deploy my-test-deploy
1kubectl get deployment
2kubectl get pods
3kubectl get nodes
4# exists in the namespace
5kubectl api-resources --namespaced=true
6# not exists in the namespace
7kubectl api-resources --namespaced=false
1kubectl describe pod my-test-pod
2kubectl describe deployment my-test-pod
1kubectl exec -ti my-test-pod /bin/bash
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。