Skip to content

Commit

Permalink
make healthcheck configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Jan 15, 2025
1 parent 00f26dd commit b600775
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.7-rc.7
0.1.8-rc.1
27 changes: 18 additions & 9 deletions helm-charts/kuberoapp/templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,32 @@ spec:
containerPort: {{ .Values.image.containerPort | default "8080" }}
protocol: TCP
{{- if or ( not .Values.sleep ) (eq .Values.sleep "disabled") }}
livenessProbe:
{{- if .Values.healthcheck.enabled }}
startupProbe:
httpGet:
path: /
path: {{ .Values.healthcheck.path | default "/" }}
port: http
initialDelaySeconds: 30
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 3
failureThreshold: 3
failureThreshold: 90
periodSeconds: 1
readinessProbe:
httpGet:
path: /
path: {{ .Values.healthcheck.path | default "/" }}
port: http
initialDelaySeconds: 2
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 2
timeoutSeconds: {{ .Values.healthcheck.timeoutSeconds | default "3" }}
failureThreshold: 30
livenessProbe:
httpGet:
path: {{ .Values.healthcheck.path | default "/" }}
port: http
initialDelaySeconds: 5
periodSeconds: 3
successThreshold: 1
timeoutSeconds: {{ .Values.healthcheck.timeoutSeconds | default "3" }}
failureThreshold: 3
{{- end }}
{{- end }}
volumeMounts:
{{- if and (eq .Values.deploymentstrategy "git") (eq .Values.buildstrategy "plain") }}
Expand Down
9 changes: 8 additions & 1 deletion helm-charts/kuberoapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,11 @@ vulnerabilityscan:
schedule: "0 0 * * *"
image:
repository: aquasec/trivy
tag: latest
tag: latest

healthcheck:
enabled: true
path: /
startupSeconds: 90
timeoutSeconds: 2
periodSeconds: 15

0 comments on commit b600775

Please sign in to comment.