From 04b764a7aa1259cef1216b02a5b5a40655e97676 Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Mon, 27 Jan 2025 01:09:24 +0800 Subject: [PATCH] fix: ensure that the controller and gateway can be deployed to the master and the tainted node --- 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