summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/templates
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-08-26 17:07:06 -0400
committerAndrew Butcher <abutcher@redhat.com>2015-11-04 19:57:22 -0500
commita6dd87452379403704fb5cd1d8647ef3cf978e28 (patch)
tree596ef9a4e3352749752ca6af62a5295defe879cd /roles/openshift_master/templates
parent16e085b44ba3e3328ec7d8a5dd5e2331c7f633a6 (diff)
downloadopenshift-a6dd87452379403704fb5cd1d8647ef3cf978e28.tar.gz
openshift-a6dd87452379403704fb5cd1d8647ef3cf978e28.tar.bz2
openshift-a6dd87452379403704fb5cd1d8647ef3cf978e28.tar.xz
openshift-a6dd87452379403704fb5cd1d8647ef3cf978e28.zip
fix dueling controllers - without controllerLeaseTTL set in config, multiple controllers will attempt to start
Diffstat (limited to 'roles/openshift_master/templates')
-rw-r--r--roles/openshift_master/templates/master.yaml.v1.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_master/templates/master.yaml.v1.j2 b/roles/openshift_master/templates/master.yaml.v1.j2
index 3f2c51417..9145df479 100644
--- a/roles/openshift_master/templates/master.yaml.v1.j2
+++ b/roles/openshift_master/templates/master.yaml.v1.j2
@@ -16,7 +16,9 @@ assetConfig:
keyFile: master.server.key
maxRequestsInFlight: 0
requestTimeoutSeconds: 0
-controllerLeaseTTL: 0
+{% if openshift_master_ha | bool %}
+controllerLeaseTTL: {{ openshift.master.controller_lease_ttl | default('30') }}
+{% endif %}
controllers: '*'
corsAllowedOrigins:
{% for origin in ['127.0.0.1', 'localhost', openshift.common.ip, openshift.common.public_ip] | union(openshift.common.all_hostnames) | unique %}