(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
This commit is contained in:
Scott Hussey 2019-01-30 16:55:42 -06:00
parent 70e85db81f
commit 79db1a1811
1 changed files with 9 additions and 0 deletions

View File

@ -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