From 038ebbe4567a74732aba57a4c0c7f126516e2821 Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Thu, 9 Feb 2023 10:12:44 +0000 Subject: [PATCH] feat(helm chart): liveness and readiness probes (#10) --- .../seq-input-gelf/templates/deployment.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/charts/seq-input-gelf/templates/deployment.yaml b/charts/seq-input-gelf/templates/deployment.yaml index 9c38929..b8673d3 100644 --- a/charts/seq-input-gelf/templates/deployment.yaml +++ b/charts/seq-input-gelf/templates/deployment.yaml @@ -42,15 +42,16 @@ spec: - name: gelf containerPort: {{ .Values.service.port }} protocol: {{ .Values.service.protocol }} - # TODO: docker image does not yet support liveness and readiness probes - # livenessProbe: - # httpGet: - # path: / - # port: http - # readinessProbe: - # httpGet: - # path: / - # port: http + readinessProbe: + tcpSocket: + port: gelf + initialDelaySeconds: 5 + periodSeconds: 10 + livenessProbe: + tcpSocket: + port: gelf + initialDelaySeconds: 15 + periodSeconds: 20 resources: {{- toYaml .Values.resources | nindent 12 }} env: