mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-19 19:16:17 +00:00
Feature/deployment probe override (#1876)
Co-authored-by: capitansec <capitansec@gmail.com> Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -96,24 +96,16 @@ spec:
|
|||||||
name: {{ include "rustfs.secretName" . }}
|
name: {{ include "rustfs.secretName" . }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
{{- if .Values.livenessProbe.enabled }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
{{- omit .Values.livenessProbe "enabled" | toYaml | nindent 12 }}
|
||||||
path: /health
|
{{- end }}
|
||||||
port: 9000
|
|
||||||
initialDelaySeconds: 10
|
{{- if .Values.readinessProbe.enabled }}
|
||||||
periodSeconds: 5
|
|
||||||
timeoutSeconds: 3
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
{{- omit .Values.readinessProbe "enabled" | toYaml | nindent 12 }}
|
||||||
path: /health/ready
|
{{- end }}
|
||||||
port: 9000
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 5
|
|
||||||
timeoutSeconds: 3
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: {{ $logDir }}
|
mountPath: {{ $logDir }}
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ resources: {}
|
|||||||
|
|
||||||
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
enabled: true # omitted
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: endpoint
|
port: endpoint
|
||||||
@@ -194,6 +195,7 @@ livenessProbe:
|
|||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
enabled: true # omitted
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health/ready
|
path: /health/ready
|
||||||
port: endpoint
|
port: endpoint
|
||||||
|
|||||||
Reference in New Issue
Block a user