Skip to content

Commit

Permalink
enhance: bind dependency of miluvs during e2e to dedicated nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Huang <[email protected]>
  • Loading branch information
yellow-shine committed Apr 25, 2024
1 parent 23f0fe7 commit 68eac11
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 1 deletion.
54 changes: 53 additions & 1 deletion tests/scripts/values/ci/pr-4am.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: >
Expand All @@ -168,20 +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:
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"
Expand Down
54 changes: 54 additions & 0 deletions tests/scripts/values/ci/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: >
Expand All @@ -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"
Expand Down

0 comments on commit 68eac11

Please sign in to comment.