From 1908d0e60582ca7db0d2ae778efc2318dc9fdd07 Mon Sep 17 00:00:00 2001 From: xiaozhang Date: Mon, 7 Oct 2019 23:27:32 +0800 Subject: [PATCH] Bind ingress controller to linux nodes to avoid Windows scheduling on kubernetes cluster includes linux nodes and windows nodes --- deploy/static/mandatory.yaml | 2 ++ deploy/static/with-rbac.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/deploy/static/mandatory.yaml b/deploy/static/mandatory.yaml index 0fe8a36ffd..8cfbd0f493 100644 --- a/deploy/static/mandatory.yaml +++ b/deploy/static/mandatory.yaml @@ -213,6 +213,8 @@ spec: # wait up to five minutes for the drain of connections terminationGracePeriodSeconds: 300 serviceAccountName: nginx-ingress-serviceaccount + nodeSelector: + kubernetes.io/os: linux containers: - name: nginx-ingress-controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.26.1 diff --git a/deploy/static/with-rbac.yaml b/deploy/static/with-rbac.yaml index 779f8c2457..450e1b620c 100644 --- a/deploy/static/with-rbac.yaml +++ b/deploy/static/with-rbac.yaml @@ -24,6 +24,8 @@ spec: # wait up to five minutes for the drain of connections terminationGracePeriodSeconds: 300 serviceAccountName: nginx-ingress-serviceaccount + nodeSelector: + kubernetes.io/os: linux containers: - name: nginx-ingress-controller image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.26.1