Commit 7a404866 authored by Zach Seils's avatar Zach Seils Committed by Kubernetes Prow Robot

[stable/InfluxDB] Make livenessProbe and readinessProbe path configurable. (#15166)

* Make livenessProbe and readinessProbe path configurable. Signed-off-by: 's avatarZach Seils <zachseils@google.com> * Make livenessProbe and readinessProbe path configurable. Signed-off-by: 's avatarZach Seils <zachseils@google.com>
parent 92dcebbe
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 1.3.3 version: 1.3.4
appVersion: 1.7.6 appVersion: 1.7.6
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
...@@ -56,16 +56,16 @@ spec: ...@@ -56,16 +56,16 @@ spec:
{{- end }} {{- end }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /ping path: {{ .Values.livenessProbe.probePath }}
port: api port: api
initialDelaySeconds: 30 initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 30 }}
timeoutSeconds: 5 timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds | default 5 }}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /ping path: {{ .Values.readinessProbe.probePath }}
port: api port: api
initialDelaySeconds: 5 initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds | default 5 }}
timeoutSeconds: 1 timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds | default 1 }}
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: {{ .Values.config.storage_directory }} mountPath: {{ .Values.config.storage_directory }}
......
...@@ -8,6 +8,15 @@ image: ...@@ -8,6 +8,15 @@ image:
# pullSecrets: # pullSecrets:
# - registry-secret # - registry-secret
## Customize livenessProbe and readinessProbe
## ref: https://docs.influxdata.com/influxdb/v1.7/tools/api/#ping-http-endpoint
##
livenessProbe:
probePath: "/ping"
readinessProbe:
probePath: "/ping"
## Specify a service type ## Specify a service type
## NodePort is default ## NodePort is default
## ref: http://kubernetes.io/docs/user-guide/services/ ## ref: http://kubernetes.io/docs/user-guide/services/
......
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