summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gugino <gugino.michael@yahoo.com>2017-12-19 14:45:38 -0500
committerGitHub <noreply@github.com>2017-12-19 14:45:38 -0500
commit0fc45b607ee46762c4d890f6fd07647d5d188d66 (patch)
tree415ec4d207b9cb2ef49c0c02385ca47461dfb1d8
parentb62786c85e11780f71aac504761a4f24311205c0 (diff)
parentaf74b50d3a6d6ea420c0892ef76eca09ce60fcef (diff)
downloadopenshift-0fc45b607ee46762c4d890f6fd07647d5d188d66.tar.gz
openshift-0fc45b607ee46762c4d890f6fd07647d5d188d66.tar.bz2
openshift-0fc45b607ee46762c4d890f6fd07647d5d188d66.tar.xz
openshift-0fc45b607ee46762c4d890f6fd07647d5d188d66.zip
Merge pull request #6062 from luis5tb/readiness
Add readiness probe to kuryr controller pod
-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.