summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJim Minter <jminter@redhat.com>2017-12-07 11:04:04 -0600
committerJim Minter <jminter@redhat.com>2017-12-11 17:15:54 -0600
commit9d36de22bcea00b7a4b76906abfdbf0f4d6beeb7 (patch)
tree8a740026a01d29b5db43c099f56215d7068d5ace /roles
parente5faa36d01cba99c2f1e67cfd126f5b5be11d367 (diff)
downloadopenshift-9d36de22bcea00b7a4b76906abfdbf0f4d6beeb7.tar.gz
openshift-9d36de22bcea00b7a4b76906abfdbf0f4d6beeb7.tar.bz2
openshift-9d36de22bcea00b7a4b76906abfdbf0f4d6beeb7.tar.xz
openshift-9d36de22bcea00b7a4b76906abfdbf0f4d6beeb7.zip
prevent TSB pods from spinning on inappropriate nodes
Diffstat (limited to 'roles')
-rw-r--r--roles/template_service_broker/defaults/main.yml1
-rw-r--r--roles/template_service_broker/tasks/install.yml3
2 files changed, 4 insertions, 0 deletions
diff --git a/roles/template_service_broker/defaults/main.yml b/roles/template_service_broker/defaults/main.yml
index 421b4ecf9..c32872d24 100644
--- a/roles/template_service_broker/defaults/main.yml
+++ b/roles/template_service_broker/defaults/main.yml
@@ -3,3 +3,4 @@
template_service_broker_remove: False
template_service_broker_install: True
openshift_template_service_broker_namespaces: ['openshift']
+template_service_broker_selector: { "region": "infra" }
diff --git a/roles/template_service_broker/tasks/install.yml b/roles/template_service_broker/tasks/install.yml
index 99a58baff..1253c1133 100644
--- a/roles/template_service_broker/tasks/install.yml
+++ b/roles/template_service_broker/tasks/install.yml
@@ -15,6 +15,8 @@
- oc_project:
name: openshift-template-service-broker
state: present
+ node_selector:
+ - ""
- command: mktemp -d /tmp/tsb-ansible-XXXXXX
register: mktemp
@@ -45,6 +47,7 @@
{{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_template_file }}"
--param API_SERVER_CONFIG="{{ config['content'] | b64decode }}"
--param IMAGE="{{ template_service_broker_prefix }}{{ template_service_broker_image_name }}:{{ template_service_broker_version }}"
+ --param NODE_SELECTOR={{ template_service_broker_selector | to_json | quote }}
| {{ openshift.common.client_binary }} apply -f -
# reconcile with rbac