summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorLuis Tomas Bolivar <ltomasbo@redhat.com>2017-11-08 18:14:21 +0100
committerLuis Tomas Bolivar <ltomasbo@redhat.com>2017-11-08 18:19:33 +0100
commitaf74b50d3a6d6ea420c0892ef76eca09ce60fcef (patch)
tree3e76c7150197ad17c75e314e91c4f4539c6d7b6f /roles
parent5efcf4a2f7e9c2f21c6f9f86dc08f12fd5f56290 (diff)
downloadopenshift-af74b50d3a6d6ea420c0892ef76eca09ce60fcef.tar.gz
openshift-af74b50d3a6d6ea420c0892ef76eca09ce60fcef.tar.bz2
openshift-af74b50d3a6d6ea420c0892ef76eca09ce60fcef.tar.xz
openshift-af74b50d3a6d6ea420c0892ef76eca09ce60fcef.zip
Add readiness probe to kuryr controller pod
This commits adds a readiness probe to the kuryr controller when the kuryr ports pool functionality is enabled. This way the controller will not be set as ready until all the pre-created ports have been loaded into their respective pools and are ready to be used by the pods.
Diffstat (limited to 'roles')
-rw-r--r--roles/kuryr/templates/controller-deployment.yaml.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/kuryr/templates/controller-deployment.yaml.j2 b/roles/kuryr/templates/controller-deployment.yaml.j2
index d970270b5..155d1faab 100644
--- a/roles/kuryr/templates/controller-deployment.yaml.j2
+++ b/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.