Skip to content

Commit e12bde6

Browse files
committed
add liveness and readiness probes
1 parent 016aa0f commit e12bde6

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

charts/vaas/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: vaas
3-
version: 3.3.0-beta.3
3+
version: 3.3.0-beta.4
44
description: Deployment of a Verdict-as-a-Service on-premise instance
55
maintainers:
66
- name: G DATA CyberDefense AG

charts/vaas/templates/gateway/statefulset.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,49 @@ spec:
8080
- name: ws
8181
containerPort: {{ .Values.gateway.service.ws.port }}
8282
protocol: TCP
83+
{{- if .Values.gateway.metrics.enabled }}
84+
- name: metrics
85+
containerPort: {{ .Values.gateway.metrics.targetPort }}
86+
protocol: TCP
87+
{{- if .Values.gateway.metrics.livenessProbe.enabled }}
88+
livenessProbe:
89+
httpGet:
90+
path: {{ .Values.gateway.metrics.livenessProbe.httpGet.path }}
91+
port: {{ .Values.gateway.metrics.livenessProbe.httpGet.port | default "metrics" }}
92+
timeoutSeconds: {{ .Values.gateway.metrics.livenessProbe.timeoutSeconds }}
93+
{{- with .Values.gateway.metrics.livenessProbe.initalDelaySeconds }}
94+
initialDelaySeconds: {{ . }}
95+
{{- end }}
96+
{{- with .Values.gateway.metrics.livenessProbe.periodSeconds }}
97+
periodSeconds: {{ . }}
98+
{{- end }}
99+
{{- with .Values.gateway.metrics.livenessProbe.successThreshold }}
100+
successThreshold: {{ . }}
101+
{{- end }}
102+
{{- with .Values.gateway.metrics.livenessProbe.failureThreshold }}
103+
failureThreshold: {{ . }}
104+
{{- end }}
105+
{{- end }}
106+
{{- if .Values.gateway.metrics.readinessProbe.enabled }}
107+
readinessProbe:
108+
httpGet:
109+
path: {{ .Values.gateway.metrics.readinessProbe.httpGet.path }}
110+
port: {{ .Values.gateway.metrics.readinessProbe.httpGet.port | default "metrics" }}
111+
timeoutSeconds: {{ .Values.gateway.metrics.readinessProbe.timeoutSeconds }}
112+
{{- with .Values.gateway.metrics.readinessProbe.initalDelaySeconds }}
113+
initialDelaySeconds: {{ . }}
114+
{{- end }}
115+
{{- with .Values.gateway.metrics.readinessProbe.periodSeconds }}
116+
periodSeconds: {{ . }}
117+
{{- end }}
118+
{{- with .Values.gateway.metrics.readinessProbe.successThreshold }}
119+
successThreshold: {{ . }}
120+
{{- end }}
121+
{{- with .Values.gateway.metrics.readinessProbe.failureThreshold }}
122+
failureThreshold: {{ . }}
123+
{{- end }}
124+
{{- end }}
125+
{{- end }}
83126
resources:
84127
{{- toYaml .Values.gateway.resources | nindent 12 }}
85128
{{- with .Values.gateway.nodeSelector }}

charts/vaas/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,17 @@ gateway:
160160

161161
metrics:
162162
enabled: false
163+
targetPort: 9110
164+
livenessProbe:
165+
enabled: true
166+
httpGet:
167+
path: /health
168+
timeoutSeconds: 5
169+
readinessProbe:
170+
enabled: true
171+
httpGet:
172+
path: /health
173+
timeoutSeconds: 5
163174
port: http
164175
path: /metrics
165176

0 commit comments

Comments
 (0)