From 9d36de22bcea00b7a4b76906abfdbf0f4d6beeb7 Mon Sep 17 00:00:00 2001 From: Jim Minter Date: Thu, 7 Dec 2017 11:04:04 -0600 Subject: prevent TSB pods from spinning on inappropriate nodes --- roles/template_service_broker/tasks/install.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/template_service_broker/tasks/install.yml') 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 -- cgit v1.2.3