Skip to content

Commit 2da7fea

Browse files
François Blondelpcallewaert
authored andcommitted
feat: Enable liveness and readiness Probes in helm chart
Probes config was taken from config/manager/operator.yaml Signed-off-by: François Blondel <francois.blondel@diva-e.com>
1 parent 0c46e0f commit 2da7fea

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

charts/ext-postgres-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ description: |
88
99
type: application
1010

11-
version: 2.0.1
11+
version: 2.1.0
1212
appVersion: "2.0.0"

charts/ext-postgres-operator/templates/operator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ spec:
5656
- name: {{ $key }}
5757
value: {{ $value | quote }}
5858
{{- end }}
59+
{{- if .Values.livenessProbe }}
60+
livenessProbe:
61+
{{- toYaml .Values.livenessProbe | nindent 12 }}
62+
{{- end }}
63+
{{- if .Values.readinessProbe }}
64+
readinessProbe:
65+
{{- toYaml .Values.readinessProbe | nindent 12 }}
66+
{{- end }}
5967
{{- if .Values.resources }}
6068
resources:
6169
{{- toYaml .Values.resources | nindent 12 }}

charts/ext-postgres-operator/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ resources:
5858
# cpu: 100m
5959
# memory: 128Mi
6060

61+
62+
# Define liveness and readiness Probes
63+
livenessProbe:
64+
httpGet:
65+
path: /healthz
66+
port: 8081
67+
initialDelaySeconds: 15
68+
periodSeconds: 20
69+
readinessProbe:
70+
httpGet:
71+
path: /readyz
72+
port: 8081
73+
initialDelaySeconds: 5
74+
periodSeconds: 10
75+
6176
# Which namespace to watch in kubernetes, empty string means all namespaces
6277
watchNamespace: ""
6378

0 commit comments

Comments
 (0)