Skip to content

Commit 55fa5a4

Browse files
authored
Merge pull request #174 from EcovadisCode/fix/worker-replica-spread
Fix worker default replica count and topology spread
2 parents 8eb3a70 + f7ff131 commit 55fa5a4

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Select the chart that you are modifying:
1212
- [ ] app-reverse-proxy
1313
- [ ] pact-broker
1414
- [ ] ado-build-agents
15+
- [ ] event-worker
1516

1617
## Checklist
1718
- [ ] Description provided

charts/event-worker/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
description: EcoVadis Helm chart for K8s Event driven Deployment
33
name: charts-event-worker
44
type: application
5-
version: 1.2.0
5+
version: 1.2.1
66
dependencies:
77
- name: charts-core
88
version: 2.4.2

charts/event-worker/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
labels:
66
{{- include "charts-event-worker.labels" . | nindent 4 }}
77
spec:
8+
replicas: 2
89
progressDeadlineSeconds: {{ .Values.global.progressDeadlineSeconds }}
910
revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit | default "3" }}
1011
minReadySeconds: {{ .Values.global.minReadySeconds | default "0"}}

charts/event-worker/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ global:
9797

9898
nodeSelector: {}
9999

100+
# Defaults to trying to schedule pods evenly across availability zones and node hostnames
101+
topologySpread:
102+
- topologyKey: topology.kubernetes.io/zone
103+
maxSkew: 1
104+
whenUnsatisfiable: ScheduleAnyway
105+
- topologyKey: kubernetes.io/hostname
106+
maxSkew: 1
107+
whenUnsatisfiable: ScheduleAnyway
108+
100109
tolerations:
101110
- key: "aksjobs"
102111
operator: "Equal"

0 commit comments

Comments
 (0)