From 68eac112c4a2d72988041cb7b2aeeb691ea0239d Mon Sep 17 00:00:00 2001 From: Liang Huang Date: Thu, 25 Apr 2024 11:37:36 +0800 Subject: [PATCH] enhance: bind dependency of miluvs during e2e to dedicated nodes Signed-off-by: Liang Huang --- tests/scripts/values/ci/pr-4am.yaml | 54 ++++++++++++++++++++++++++++- tests/scripts/values/ci/pr.yaml | 54 +++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+), 1 deletion(-) diff --git a/tests/scripts/values/ci/pr-4am.yaml b/tests/scripts/values/ci/pr-4am.yaml index 1a6cd8ee612cf..91dcb70a0dc67 100644 --- a/tests/scripts/values/ci/pr-4am.yaml +++ b/tests/scripts/values/ci/pr-4am.yaml @@ -73,6 +73,13 @@ pulsar: components: autorecovery: false proxy: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" configData: PULSAR_MEM: > -Xms1024m -Xmx1024m @@ -89,6 +96,13 @@ pulsar: memory: "100Mi" cpu: "0.1" broker: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" resources: requests: cpu: "0.5" @@ -117,6 +131,13 @@ pulsar: backlogQuotaDefaultRetentionPolicy: producer_exception bookkeeper: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" configData: PULSAR_MEM: > -Xms4096m @@ -144,6 +165,13 @@ pulsar: memory: "4Gi" zookeeper: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" replicaCount: 1 configData: PULSAR_MEM: > @@ -168,6 +196,14 @@ kafka: cpu: "0.5" memory: "1Gi" zookeeper: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + replicaCount: 1 resources: requests: @@ -175,13 +211,29 @@ kafka: memory: "512Mi" etcd: nodeSelector: - nvme: "true" + node-role/nvme: "true" + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + + replicaCount: 1 resources: requests: cpu: "0.3" memory: "100Mi" minio: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + resources: requests: cpu: "0.3" diff --git a/tests/scripts/values/ci/pr.yaml b/tests/scripts/values/ci/pr.yaml index 336ebde526dc0..e0528355662cf 100644 --- a/tests/scripts/values/ci/pr.yaml +++ b/tests/scripts/values/ci/pr.yaml @@ -73,6 +73,13 @@ pulsar: components: autorecovery: false proxy: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" configData: PULSAR_MEM: > -Xms1024m -Xmx1024m @@ -89,6 +96,13 @@ pulsar: memory: "100Mi" cpu: "0.1" broker: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" resources: requests: cpu: "0.5" @@ -117,6 +131,13 @@ pulsar: backlogQuotaDefaultRetentionPolicy: producer_exception bookkeeper: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" configData: PULSAR_MEM: > -Xms4096m @@ -144,6 +165,13 @@ pulsar: memory: "4Gi" zookeeper: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" replicaCount: 1 configData: PULSAR_MEM: > @@ -168,18 +196,44 @@ kafka: cpu: "0.5" memory: "1Gi" zookeeper: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + replicaCount: 1 resources: requests: cpu: "0.3" memory: "512Mi" etcd: + nodeSelector: + node-role/nvme: "true" + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + + replicaCount: 1 resources: requests: cpu: "0.3" memory: "100Mi" minio: + nodeSelector: + node-role.kubernetes.io/e2e: "" + + tolerations: + - key: "node-role.kubernetes.io/e2e" + operator: "Exists" + effect: "NoSchedule" + resources: requests: cpu: "0.3"