v2-79d080bf9417d6c4a966d28c013010de.jpg

打标签

kubectl label nodes node01 node-role.kubernetes.io/ingress="true"
kubectl label nodes node02 node-role.kubernetes.io/ingress="true"

更新deployment,增加nodeSelector配置

kubectl -n kube-system patch deployment nginx-ingress-controller -p '{"spec": {"template": {"spec": {"nodeSelector": {"node-role.kubernetes.io/ingress": "true"}}}}}'

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code