Skip to content

Commit 023d5b3

Browse files
committed
all: allow deactivation of probes
1 parent c1e4f4c commit 023d5b3

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

templates/editoast/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ spec:
3838
containerPort: {{ .Values.services.editoast.service.port }}
3939
protocol: TCP
4040

41+
{{- if not .Values.services.editoast.livenessProbe.disabled }}
4142
livenessProbe:
4243
exec:
4344
command:
@@ -47,11 +48,14 @@ spec:
4748
initialDelaySeconds: {{ .Values.services.editoast.livenessProbe.initialDelaySeconds }}
4849
periodSeconds: {{ .Values.services.editoast.livenessProbe.periodSeconds }}
4950
timeoutSeconds: {{ .Values.services.editoast.livenessProbe.timeoutSeconds }}
51+
{{- end }}
5052

53+
{{- if not .Values.services.editoast.readinessProbe.disabled }}
5154
readinessProbe:
5255
httpGet:
5356
path: /health
5457
port: http
58+
{{- end }}
5559

5660
env:
5761
- name: EDITOAST_PORT

templates/gateway/deployment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,21 @@ spec:
5050
{{- with (.Values.services.gateway.volumeMounts | default list) }}
5151
{{- toYaml . | nindent 12 }}
5252
{{- end }}
53+
54+
{{- if not .Values.services.gateway.livenessProbe.disabled }}
5355
livenessProbe:
5456
httpGet:
5557
path: /health
5658
port: http
59+
{{- end }}
60+
61+
{{- if not .Values.services.gateway.readinessProbe.disabled }}
5762
readinessProbe:
5863
httpGet:
5964
path: /health
6065
port: http
66+
{{- end }}
67+
6168
env:
6269
{{- with .Values.services.gateway.env }}
6370
{{- toYaml . | nindent 12 }}

templates/osrdyne/deployment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,21 @@ spec:
4646
{{- with (.Values.services.osrdyne.volumeMounts | default list) }}
4747
{{- toYaml . | nindent 12 }}
4848
{{- end }}
49+
50+
{{- if not .Values.services.osrdyne.livenessProbe.disabled }}
4951
livenessProbe:
5052
httpGet:
5153
path: /health
5254
port: http
55+
{{- end }}
56+
57+
{{- if not .Values.services.osrdyne.readinessProbe.disabled }}
5358
readinessProbe:
5459
httpGet:
5560
path: /health
5661
port: http
62+
{{- end }}
63+
5764
env:
5865
- name: OSRDYNE__AMQP_URI
5966
{{- $amqp := .Values.endpoints.amqp }}

templates/tile_server/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,22 @@ spec:
3838
containerPort: {{ .Values.services.tileServer.service.port }}
3939
protocol: TCP
4040

41+
{{- if not .Values.services.osrdyne.tileServer.disabled }}
4142
livenessProbe:
4243
httpGet:
4344
path: /health
4445
port: http
4546
initialDelaySeconds: {{ .Values.services.tileServer.livenessProbe.initialDelaySeconds }}
4647
periodSeconds: {{ .Values.services.tileServer.livenessProbe.periodSeconds }}
4748
timeoutSeconds: {{ .Values.services.tileServer.livenessProbe.timeoutSeconds }}
49+
{{- end }}
4850

51+
{{- if not .Values.services.tileServer.readinessProbe.disabled }}
4952
readinessProbe:
5053
httpGet:
5154
path: /health
5255
port: http
56+
{{- end }}
5357

5458
env:
5559
- name: EDITOAST_PORT

values.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ services:
3939
port: 80
4040
targetPort: 80
4141
livenessProbe:
42+
disabled: false
4243
initialDelaySeconds: 5
4344
periodSeconds: 60
4445
timeoutSeconds: 20
46+
readinessProbe:
47+
disabled: false
4548
config:
4649
pool_id: "core"
4750
api_address: "0.0.0.0:80"
@@ -92,9 +95,12 @@ services:
9295
port: 80
9396
targetPort: 80
9497
livenessProbe:
98+
disabled: false
9599
initialDelaySeconds: 0
96100
periodSeconds: 10
97101
timeoutSeconds: 1
102+
readinessProbe:
103+
disabled: false
98104
hpa:
99105
enabled: false
100106
minReplicas: 1
@@ -138,6 +144,10 @@ services:
138144
- "10.0.0.0/8"
139145
- "172.16.0.0/12"
140146
- "192.168.0.0/16"
147+
livenessProbe:
148+
disabled: false
149+
readinessProbe:
150+
disabled: false
141151
annotations: {}
142152
labels: {}
143153
nodeSelector: {}
@@ -156,9 +166,12 @@ services:
156166
port: 80
157167
targetPort: 80
158168
livenessProbe:
169+
disabled: false
159170
initialDelaySeconds: 0
160171
periodSeconds: 10
161172
timeoutSeconds: 1
173+
readinessProbe:
174+
disabled: false
162175
annotations: {}
163176
init:
164177
enabled: true

0 commit comments

Comments
 (0)