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