Skip to content

Commit b600775

Browse files
committed
make healthcheck configurable
1 parent 00f26dd commit b600775

File tree

3 files changed

+27
-11
lines changed

3 files changed

+27
-11
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.7-rc.7
1+
0.1.8-rc.1

helm-charts/kuberoapp/templates/deployment-web.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,23 +126,32 @@ spec:
126126
containerPort: {{ .Values.image.containerPort | default "8080" }}
127127
protocol: TCP
128128
{{- if or ( not .Values.sleep ) (eq .Values.sleep "disabled") }}
129-
livenessProbe:
129+
{{- if .Values.healthcheck.enabled }}
130+
startupProbe:
130131
httpGet:
131-
path: /
132+
path: {{ .Values.healthcheck.path | default "/" }}
132133
port: http
133-
initialDelaySeconds: 30
134-
periodSeconds: 15
135-
successThreshold: 1
136-
timeoutSeconds: 3
137-
failureThreshold: 3
134+
failureThreshold: 90
135+
periodSeconds: 1
138136
readinessProbe:
139137
httpGet:
140-
path: /
138+
path: {{ .Values.healthcheck.path | default "/" }}
141139
port: http
140+
initialDelaySeconds: 2
142141
periodSeconds: 2
143142
successThreshold: 1
144-
timeoutSeconds: 2
143+
timeoutSeconds: {{ .Values.healthcheck.timeoutSeconds | default "3" }}
145144
failureThreshold: 30
145+
livenessProbe:
146+
httpGet:
147+
path: {{ .Values.healthcheck.path | default "/" }}
148+
port: http
149+
initialDelaySeconds: 5
150+
periodSeconds: 3
151+
successThreshold: 1
152+
timeoutSeconds: {{ .Values.healthcheck.timeoutSeconds | default "3" }}
153+
failureThreshold: 3
154+
{{- end }}
146155
{{- end }}
147156
volumeMounts:
148157
{{- if and (eq .Values.deploymentstrategy "git") (eq .Values.buildstrategy "plain") }}

helm-charts/kuberoapp/values.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,11 @@ vulnerabilityscan:
248248
schedule: "0 0 * * *"
249249
image:
250250
repository: aquasec/trivy
251-
tag: latest
251+
tag: latest
252+
253+
healthcheck:
254+
enabled: true
255+
path: /
256+
startupSeconds: 90
257+
timeoutSeconds: 2
258+
periodSeconds: 15

0 commit comments

Comments
 (0)