Skip to content

Commit

Permalink
add liveness check
Browse files Browse the repository at this point in the history
  • Loading branch information
naborisk committed Sep 17, 2023
1 parent cf4cd45 commit e1e88cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/shell-bot-concurrent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: shell-bot-concurrent
description: A WIP bot for concurrent social networking platform
type: application
version: 0.0.7
version: 0.0.8
appVersion: "0.0.1"
7 changes: 7 additions & 0 deletions charts/shell-bot-concurrent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ spec:
value: {{ .Values.env.POST_STREAM }}
- name: COMMAND_PREFIX
value: {{ .Values.env.COMMAND_PREFIX }}
livenessProbe:
exec:
command:
- rm
- /tmp/pong
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
4 changes: 4 additions & 0 deletions charts/shell-bot-concurrent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ env:
CONCURRENT_HOST: ''
POST_STREAM: ''
COMMAND_PREFIX: '/sh'

livenessProbe:
initialDelaySeconds: 6
periodSeconds: 30

0 comments on commit e1e88cf

Please sign in to comment.