Skip to content

Commit be90103

Browse files
authored
Merge pull request #169 from Test-Automation-Engineer/feature/ON-pdb-for-worker
Add pdb for worker
2 parents 8739489 + 181d0e2 commit be90103

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

Diff for: charts/opennotificaties/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 1.8.0-beta.0 (2025-22-01)
4+
- [#169] Add pdb for worker
5+
36
## 1.7.0-beta.0 (2025-10-01)
47

58
- [#148] Replace the worker liveness probe with the `celery inspect active` command. This should detect when a worker is down and should not interrupt long running tasks.

Diff for: charts/opennotificaties/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: opennotificaties
33
description: API voor het routeren van notificaties
44

55
type: application
6-
version: 1.7.0-beta.0
6+
version: 1.8.0-beta.0
77
appVersion: latest
88

99
dependencies:

Diff for: charts/opennotificaties/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ API voor het routeren van notificaties
219219
| worker.livenessProbe.successThreshold | int | `1` | |
220220
| worker.livenessProbe.timeoutSeconds | int | `15` | |
221221
| worker.maxWorkerLivenessDelta | string | `""` | |
222+
| worker.pdb.create | bool | `false` | |
223+
| worker.pdb.maxUnavailable | string | `""` | |
224+
| worker.pdb.minAvailable | int | `1` | |
222225
| worker.podLabels | object | `{}` | |
223226
| worker.replicaCount | int | `2` | |
224227
| worker.resources | object | `{}` | |
225-

Diff for: charts/opennotificaties/templates/pdb.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,25 @@ spec:
1616
selector:
1717
matchLabels:
1818
{{- include "opennotificaties.selectorLabels" . | nindent 6 }}
19+
{{- end }}
20+
21+
---
22+
{{- if .Values.worker.pdb.create }}
23+
apiVersion: policy/v1
24+
kind: PodDisruptionBudget
25+
metadata:
26+
name: {{ include "opennotificaties.workerFullname" . }}
27+
namespace: {{ .Release.Namespace | quote }}
28+
labels:
29+
{{- include "opennotificaties.workerLabels" . | nindent 4 }}
30+
spec:
31+
{{- if .Values.worker.pdb.minAvailable }}
32+
minAvailable: {{ .Values.worker.pdb.minAvailable }}
33+
{{- end }}
34+
{{- if .Values.worker.pdb.maxUnavailable }}
35+
maxUnavailable: {{ .Values.worker.pdb.maxUnavailable }}
36+
{{- end }}
37+
selector:
38+
matchLabels:
39+
{{- include "opennotificaties.workerSelectorLabels" . | nindent 6 }}
1940
{{- end }}

Diff for: charts/opennotificaties/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ worker:
353353
maxReplicas: 100
354354
targetCPUUtilizationPercentage: 80
355355
targetMemoryUtilizationPercentage: 80
356+
pdb:
357+
create: false
358+
minAvailable: 1
359+
maxUnavailable: ""
356360

357361
flower:
358362
enabled: false

0 commit comments

Comments
 (0)