Browse Source

(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
Scott Hussey 2 months ago
parent
commit
79db1a1811
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      charts/maas/templates/statefulset-rack.yaml

+ 9
- 0
charts/maas/templates/statefulset-rack.yaml View File

@@ -76,6 +76,15 @@ spec:
76 76
             - /tmp/start.sh
77 77
           securityContext:
78 78
             privileged: true
79
+          readinessProbe:
80
+            initialDelaySeconds: 60
81
+            periodSeconds: 300
82
+            timeoutSeconds: 60
83
+            exec:
84
+              command:
85
+                - /bin/bash
86
+                - -c
87
+                - journalctl -u register-rack-controller -n 5 | grep -q 'Successfully registered with MaaS Region Controller'
79 88
           volumeMounts:
80 89
             - mountPath: /sys/fs/cgroup
81 90
               name: host-sys-fs-cgroup

Loading…
Cancel
Save