Skip to content

Commit 7e8d0dd

Browse files
m00nyONEyGuy
authored andcommitted
add livenessprobe as exec to avoid container crashlooping
1 parent f94ea05 commit 7e8d0dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

helm/chatgpt-mattermost-bot/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ spec:
3838
name: {{ include "chatgpt-mattermost-bot.fullname" . }}-config
3939
- secretRef:
4040
name: {{ include "chatgpt-mattermost-bot.fullname" . }}-secret
41+
livenessProbe:
42+
exec:
43+
command:
44+
- pidof
45+
- node
46+
initialDelaySeconds: 5
47+
periodSeconds: 15
48+
failureThreshold: 4
4149
resources:
4250
{{- toYaml .Values.resources | nindent 12 }}
4351
{{- with .Values.nodeSelector }}

0 commit comments

Comments
 (0)