Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ spec:
env:
- name: EULA
value: {{ .Values.eula | squote }}
{{- with .Values.healthcheck }}
livenessProbe:
exec:
command: ["mc-monitor", "status"]
periodSeconds: 1
failureThreshold: 5 # 5 seconds before considering the pod as unhealthy
periodSeconds: {{ .checkInterval }}
failureThreshold: {{ div .failureThreshold.liveness .checkInterval }}
startupProbe:
exec:
command: ["mc-monitor", "status"]
periodSeconds: 1
failureThreshold: 60 # 1 minute before considering the startup as failed
periodSeconds: {{ .checkInterval }}
failureThreshold: {{ div .failureThreshold.startup .checkInterval }}
{{- end }}
12 changes: 12 additions & 0 deletions src/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@ container:
service:
ports:
nodePort: 30000

# Health checks configuration.
# If the server is deemed "unhealthy", it will be automatically restarted
# to ensure high availability and minimize downtime.
healthcheck:
# Time interval (in seconds) between consecutive health checks.
checkInterval: 1
# Time in seconds before the server is considered unhealthy.
# Must be a multiple of checkInterval.
failureThreshold:
startup: 60 # During startup phase.
liveness: 5 # During normal operation.