Skip to content

Commit

Permalink
feat(helm): customizable probes
Browse files Browse the repository at this point in the history
Signed-off-by: Byeonghoon Yoo <[email protected]>
  • Loading branch information
isac322 committed Jul 17, 2024
1 parent e27a557 commit ce14d53
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/blocky/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.24.3
version: 0.24.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 6 additions & 6 deletions charts/blocky/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ spec:
command:
- /app/blocky
- healthcheck
timeoutSeconds: 1
failureThreshold: 1
periodSeconds: 1
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
startupProbe:
exec:
command:
- /app/blocky
- healthcheck
timeoutSeconds: 1
failureThreshold: 120
periodSeconds: 1
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
10 changes: 10 additions & 0 deletions charts/blocky/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,16 @@ updateStrategy:
rollingUpdate:
maxUnavailable: 1

readinessProbe:
timeoutSeconds: 1
failureThreshold: 1
periodSeconds: 1

startupProbe:
timeoutSeconds: 1
failureThreshold: 120
periodSeconds: 1

podAnnotations: {}

podSecurityContext:
Expand Down

0 comments on commit ce14d53

Please sign in to comment.