From 68ba9104376e6204b0309d4c845e4c478bfad894 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Thu, 14 Nov 2019 21:05:58 +0100 Subject: [PATCH] improvement(k8s): tune probes for build-sync pods We've observed Kubernetes killing the rsync pods, and suspect this may have something to do with the probes. --- .../system/build-sync/templates/deployment.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 c13fe85804..805e23be16 100644 --- a/garden-service/static/kubernetes/system/build-sync/templates/deployment.yaml +++ b/garden-service/static/kubernetes/system/build-sync/templates/deployment.yaml @@ -42,12 +42,16 @@ spec: - name: rsync containerPort: 873 protocol: TCP - livenessProbe: - tcpSocket: - port: 873 readinessProbe: - tcpSocket: - port: 873 + exec: + command: [pidof, rsync] + initialDelaySeconds: 5 + periodSeconds: 2 + livenessProbe: + exec: + command: [pidof, rsync] + initialDelaySeconds: 20 + periodSeconds: 20 volumeMounts: - mountPath: /data name: garden-build-sync