From 23f0fe7f251afa9266ab4e530e10bdda8756cd04 Mon Sep 17 00:00:00 2001 From: Liang Huang Date: Wed, 24 Apr 2024 19:06:52 +0800 Subject: [PATCH] enhance: bind e2e to dedicated nodes Signed-off-by: Liang Huang --- tests/scripts/values/ci/nightly-one-pod.yaml | 8 ++++++++ tests/scripts/values/ci/pr-4am.yaml | 9 +++++++++ tests/scripts/values/ci/pr.yaml | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/tests/scripts/values/ci/nightly-one-pod.yaml b/tests/scripts/values/ci/nightly-one-pod.yaml index 9ec7ab0379863..fc46cee313a92 100644 --- a/tests/scripts/values/ci/nightly-one-pod.yaml +++ b/tests/scripts/values/ci/nightly-one-pod.yaml @@ -2,6 +2,14 @@ metrics: serviceMonitor: enabled: true +nodeSelector: + node-role.kubernetes.io/e2e: "" + +tolerations: +- key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + cluster: enabled: false etcd: diff --git a/tests/scripts/values/ci/pr-4am.yaml b/tests/scripts/values/ci/pr-4am.yaml index 4b2cacd7a0296..1a6cd8ee612cf 100644 --- a/tests/scripts/values/ci/pr-4am.yaml +++ b/tests/scripts/values/ci/pr-4am.yaml @@ -3,6 +3,15 @@ metrics: enabled: true log: level: debug + +nodeSelector: + node-role.kubernetes.io/e2e: "" + +tolerations: +- key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + proxy: resources: requests: diff --git a/tests/scripts/values/ci/pr.yaml b/tests/scripts/values/ci/pr.yaml index c82afb6c52b58..336ebde526dc0 100644 --- a/tests/scripts/values/ci/pr.yaml +++ b/tests/scripts/values/ci/pr.yaml @@ -1,6 +1,15 @@ metrics: serviceMonitor: enabled: true + +nodeSelector: + node-role.kubernetes.io/e2e: "" + +tolerations: +- key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + log: level: debug proxy: