From e6efba8cdbca70357814709817b6b27337f3a419 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Wed, 1 Apr 2020 16:28:48 +0200 Subject: [PATCH] fix(k8s): intermittent errors with volume mounts in build-sync pods --- .../kubernetes/system/build-sync/templates/deployment.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/garden-service/static/kubernetes/system/build-sync/templates/deployment.yaml b/garden-service/static/kubernetes/system/build-sync/templates/deployment.yaml index e2196a364b..1d68705fab 100644 --- a/garden-service/static/kubernetes/system/build-sync/templates/deployment.yaml +++ b/garden-service/static/kubernetes/system/build-sync/templates/deployment.yaml @@ -49,9 +49,11 @@ spec: periodSeconds: 2 livenessProbe: exec: - command: [pidof, rsync] + # The volume mount can go stale (for reasons not fully understood). This checks makes sure the volume + # mount works and terminates the container if/when the mount fails. + command: [stat, /data] initialDelaySeconds: 20 - periodSeconds: 20 + periodSeconds: 2 volumeMounts: - mountPath: /data name: garden-build-sync