K8S常用命令
node角色
kubectl label nodes node1 node-role.kubernetes.io/node=
kubectl label nodes node1 node-role.kubernetes.io/node-
yaml文件编写
kubectl run --name=nginx my-deploy -o yaml --dry-run > my-deploy.yaml
kubectl explain pod.spec.affinity.PodAffinity
命令补全
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
简写查看
kubectl api-resources