Koschei: fix syntax of health checks in deployment config

This commit is contained in:
Mikolaj Izdebski 2019-09-24 11:44:13 +02:00 committed by Pierre-Yves Chibon
parent 68348e180d
commit 7dd0a2aa93

View file

@ -46,10 +46,12 @@ spec:
memory: "{{ max_mem }}Mi"
readinessProbe:
initialDelaySeconds: 5
exec:
command: ["/bin/bash", "-c", "[[ -e /var/run/koschei-watchdog ]]"]
livenessProbe:
initialDelaySeconds: 30
periodSeconds: 5
exec:
command: ["/bin/bash", "-c", "(($(stat -c%Y /var/run/koschei-watchdog) + {{ koschei_watchdog_timeout }} > $(date +%s)))"]
volumes:
- name: config