From 992fd187f162cef411f2ce89663a357669a125ec Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 20 Nov 2023 16:24:28 +0100 Subject: [PATCH 1/2] Add startupProbe to fluentd Signed-off-by: Johnny --- charts/fluentd/templates/_pod.tpl | 2 ++ charts/fluentd/values.yaml | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/charts/fluentd/templates/_pod.tpl b/charts/fluentd/templates/_pod.tpl index e285e3a8..6d160e20 100644 --- a/charts/fluentd/templates/_pod.tpl +++ b/charts/fluentd/templates/_pod.tpl @@ -58,6 +58,8 @@ containers: {{- end }} livenessProbe: {{- toYaml .Values.livenessProbe | nindent 6 }} + startupProbe: + {{- toYaml .Values.startupProbe | nindent 6 }} readinessProbe: {{- toYaml .Values.readinessProbe | nindent 6 }} resources: diff --git a/charts/fluentd/values.yaml b/charts/fluentd/values.yaml index 59a66531..e1b60113 100644 --- a/charts/fluentd/values.yaml +++ b/charts/fluentd/values.yaml @@ -67,6 +67,18 @@ livenessProbe: # successThreshold: 1 # failureThreshold: 3 +# Configure the startupProbe +# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ +startupProbe: + httpGet: + path: /metrics + port: metrics + # initialDelaySeconds: 0 + # periodSeconds: 10 + # timeoutSeconds: 1 + # successThreshold: 1 + # failureThreshold: 30 + # Configure the readinessProbe # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ readinessProbe: From 071f5bcf76316b42693849d54cde2650f25d30a6 Mon Sep 17 00:00:00 2001 From: jhanbo Date: Fri, 7 Jun 2024 14:00:06 +0200 Subject: [PATCH 2/2] Update charts/fluentd/values.yaml Co-authored-by: Marco Franssen Signed-off-by: jhanbo --- charts/fluentd/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/fluentd/values.yaml b/charts/fluentd/values.yaml index e1b60113..ed0af629 100644 --- a/charts/fluentd/values.yaml +++ b/charts/fluentd/values.yaml @@ -70,7 +70,7 @@ livenessProbe: # Configure the startupProbe # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ startupProbe: - httpGet: + httpGet: path: /metrics port: metrics # initialDelaySeconds: 0