kubernetes高级调度简单说明
Node label使用说明 1.查看label kubectl get nodes --show-labels=true 2.创建label kubectl label node $(node_name) $key=$value 3.更新label kubectl label --overwrite node $(node_name) $key=$value 4.删除label kubectl label node $(node_name) $key- Node调度几种模式 首先看一下,我测试环境node label 1.nodeName模式 apiVersion: extensions/v1beta1 kind: Deployment metadata: name: hello-world spec: replicas: 3 template: metadata: labels: k8s-app: hello-world spec: nodeName: node1 containers: - name: hello-world image: registry.cn-qingdao.aliyuncs.com/icommon/hello-world:latest 2.nodeSelector模式 apiVersion: extensions/v1beta1 kind: