From c070c58422eb937a332b3ecbfd02b0f249886aa1 Mon Sep 17 00:00:00 2001 From: zijiren <84728412+zijiren233@users.noreply.github.com> Date: Mon, 27 Jan 2025 12:22:08 +0800 Subject: [PATCH] fix: ensure that the controller and gateway can be deployed to the master and the tainted node (#5359) --- scripts/cloud/install.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/cloud/install.sh b/scripts/cloud/install.sh index 44475293f91..92be05f330a 100644 --- a/scripts/cloud/install.sh +++ b/scripts/cloud/install.sh @@ -423,9 +423,10 @@ spec: type: NodePort kind: DaemonSet tolerations: - - key: node-role.kubernetes.io/control-plane - operator: Exists - effect: NoSchedule + - effect: "NoExecute" + operator: "Exists" + - effect: "NoSchedule" + operator: "Exists" resources: requests: cpu: 256m @@ -436,11 +437,12 @@ spec: autoscaling: enabled: true nodeSelector: - node-role.kubernetes.io/control-plane: '' + node-role.kubernetes.io/control-plane: "true" tolerations: - - key: node-role.kubernetes.io/control-plane - operator: Exists - effect: NoSchedule + - effect: "NoExecute" + operator: "Exists" + - effect: "NoSchedule" + operator: "Exists" resources: requests: cpu: 256m