From 79db1a1811b1b3ceb31fea61ef5707f80ae93452 Mon Sep 17 00:00:00 2001 From: Scott Hussey Date: Wed, 30 Jan 2019 16:55:42 -0600 Subject: [PATCH] (chart) rackd pod readiness check - Add a readiness check for the rack pods. This really only applies when they are spawned and will not be useful for ongoing readiness evaluation. Should eliminate false 'completions' of the chart deployment. Change-Id: I5b547976e770302d2cc293396e1041798ac7e4ea --- charts/maas/templates/statefulset-rack.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/maas/templates/statefulset-rack.yaml b/charts/maas/templates/statefulset-rack.yaml index 78e37ea..1c99ffc 100644 --- a/charts/maas/templates/statefulset-rack.yaml +++ b/charts/maas/templates/statefulset-rack.yaml @@ -76,6 +76,15 @@ spec: - /tmp/start.sh securityContext: privileged: true + readinessProbe: + initialDelaySeconds: 60 + periodSeconds: 300 + timeoutSeconds: 60 + exec: + command: + - /bin/bash + - -c + - journalctl -u register-rack-controller -n 5 | grep -q 'Successfully registered with MaaS Region Controller' volumeMounts: - mountPath: /sys/fs/cgroup name: host-sys-fs-cgroup