Commit 524fe3f5 authored by Naseem's avatar Naseem Committed by GitHub

[stable/influxdb] probes (#20800)

* Use include function instead of template. Signed-off-by: 's avatarNaseem <naseem@transit.app> * Hardcode probe path. There is no value in making the path configurable. By hardcoding it to /ping we remove unecessary templating and config complexity. Signed-off-by: 's avatarNaseem <naseem@transit.app>
parent 0c23b2f3
apiVersion: v1
name: influxdb
version: 4.2.1
version: 4.2.2
appVersion: 1.7.6
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
......
......@@ -52,20 +52,20 @@ spec:
{{- end }}
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.probePath }}
path: /ping
port: meta
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 30 }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds | default 5 }}
readinessProbe:
httpGet:
path: {{ .Values.readinessProbe.probePath }}
path: /ping
port: meta
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 5 }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds | default 1 }}
{{- if .Values.startupProbe.enabled }}
startupProbe:
httpGet:
path: {{ .Values.startupProbe.probePath }}
path: /ping
port: meta
failureThreshold: {{ .Values.startupProbe.failureThreshold | default 6 }}
periodSeconds: {{ .Values.startupProbe.periodSeconds | default 5 }}
......
......@@ -86,20 +86,20 @@ spec:
{{- end }}
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.probePath }}
path: /ping
port: api
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 30 }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds | default 5 }}
readinessProbe:
httpGet:
path: {{ .Values.readinessProbe.probePath }}
path: /ping
port: api
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 5 }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds | default 1 }}
{{- if .Values.startupProbe.enabled }}
startupProbe:
httpGet:
path: {{ .Values.startupProbe.probePath }}
path: /ping
port: api
failureThreshold: {{ .Values.startupProbe.failureThreshold | default 6 }}
periodSeconds: {{ .Values.startupProbe.periodSeconds | default 5 }}
......
......@@ -14,18 +14,20 @@ serviceAccount:
name:
annotations: {}
## Customize livenessProbe and readinessProbe
## Customize liveness, readiness and startup probes
## ref: https://docs.influxdata.com/influxdb/v1.7/tools/api/#ping-http-endpoint
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
##
livenessProbe:
probePath: "/ping"
livenessProbe: {}
# initialDelaySeconds: 30
# timeoutSeconds: 5
readinessProbe:
probePath: "/ping"
readinessProbe: {}
# initialDelaySeconds: 5
# timeoutSeconds: 1
startupProbe:
enabled: false
probePath: "/ping"
# failureThreshold: 6
# periodSeconds: 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment