From 4362107cfdcfaaa1305507d9111e0dd194a8fefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lebron=20Yan=20=28=E9=97=AB=E6=B0=B8=E6=99=96=29-=E4=BA=91?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=AD=E5=BF=83=E9=9B=86=E5=9B=A2?= Date: Thu, 13 May 2021 11:31:08 +0800 Subject: [PATCH] edit yurt-controller-manager --- config/setup/yurt-controller-manager.yaml | 2 ++ config/yaml-template/yurt-controller-manager.yaml | 2 ++ pkg/yurtctl/constants/constants.go | 2 ++ 3 files changed, 6 insertions(+) diff --git a/config/setup/yurt-controller-manager.yaml b/config/setup/yurt-controller-manager.yaml index 9557c7984d1..143e37d1a7a 100644 --- a/config/setup/yurt-controller-manager.yaml +++ b/config/setup/yurt-controller-manager.yaml @@ -104,6 +104,8 @@ spec: spec: serviceAccountName: yurt-controller-manager hostNetwork: true + tolerations: + - operator: "Exists" affinity: nodeAffinity: # we prefer allocating ecm on cloud node diff --git a/config/yaml-template/yurt-controller-manager.yaml b/config/yaml-template/yurt-controller-manager.yaml index c5483e07f43..63f69216a9a 100644 --- a/config/yaml-template/yurt-controller-manager.yaml +++ b/config/yaml-template/yurt-controller-manager.yaml @@ -103,6 +103,8 @@ spec: spec: serviceAccountName: __project_prefix__-controller-manager hostNetwork: true + tolerations: + - operator: "Exists" affinity: nodeAffinity: # we prefer allocating ecm on cloud node diff --git a/pkg/yurtctl/constants/constants.go b/pkg/yurtctl/constants/constants.go index ba429076250..227d55fffda 100644 --- a/pkg/yurtctl/constants/constants.go +++ b/pkg/yurtctl/constants/constants.go @@ -143,6 +143,8 @@ spec: spec: serviceAccountName: yurt-controller-manager hostNetwork: true + tolerations: + - operator: "Exists" affinity: nodeAffinity: # we prefer allocating ecm on cloud node