Parcourir la source

Merge pull request #6062 from luis5tb/readiness

Add readiness probe to kuryr controller pod
Michael Gugino il y a 7 ans
Parent
commit
0fc45b607e
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      roles/kuryr/templates/controller-deployment.yaml.j2

+ 7 - 0
roles/kuryr/templates/controller-deployment.yaml.j2

@@ -22,6 +22,13 @@ spec:
       - image: kuryr/controller:latest
         imagePullPolicy: IfNotPresent
         name: controller
+{% if kuryr_openstack_enable_pools | default(false) %}
+        readinessProbe:
+          exec:
+            command:
+            - cat
+            - /tmp/pools_loaded
+{% endif %}
         terminationMessagePath: "/dev/termination-log"
         # FIXME(dulek): This shouldn't be required, but without it selinux is
         #               complaining about access to kuryr.conf.