Merge "Robust maas-rack readiness probe"
This commit is contained in:
commit
9acebfc2b4
@ -20,6 +20,7 @@ register_maas_rack() {
|
||||
if maas-rack register --url="${MAAS_ENDPOINT}" --secret="${MAAS_REGION_SECRET}";
|
||||
then
|
||||
echo "Successfully registered with MaaS Region Controller"
|
||||
touch '/tmp/maas-rack.done'
|
||||
break
|
||||
else
|
||||
echo "Unable to register with ${MAAS_ENDPOINT}... will try again"
|
||||
|
@ -99,9 +99,8 @@ spec:
|
||||
timeoutSeconds: 60
|
||||
exec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- journalctl -u register-rack-controller -n 5 | grep -q 'Successfully registered with MaaS Region Controller'
|
||||
- ls
|
||||
- /tmp/maas-rack.done
|
||||
volumeMounts:
|
||||
- mountPath: /sys/fs/cgroup
|
||||
name: host-sys-fs-cgroup
|
||||
|
Loading…
x
Reference in New Issue
Block a user