Browse Source

Merge pull request #8118 from fabianvf/bz1571385

(3.10) Bug 1571385-  Broker still not properly selecting master nodes
Scott Dodson 7 years ago
parent
commit
bc0b473652

+ 2 - 0
roles/ansible_service_broker/tasks/install.yml

@@ -12,6 +12,8 @@
   oc_project:
     name: openshift-ansible-service-broker
     state: present
+    node_selector:
+      - ""
 
 - name: create ansible-service-broker serviceaccount
   oc_serviceaccount:

+ 1 - 1
roles/ansible_service_broker/templates/asb_dc.yaml.j2

@@ -10,7 +10,6 @@ spec:
   replicas: 1
   selector:
     app: openshift-ansible-service-broker
-  nodeSelector: {{ ansible_service_broker_node_selector }}
   strategy:
     type: Rolling
   template:
@@ -19,6 +18,7 @@ spec:
         app: openshift-ansible-service-broker
         service: asb
     spec:
+      nodeSelector: {{ ansible_service_broker_node_selector }}
       serviceAccount: asb
       containers:
 {% if ansible_service_broker_enable_dashboard_redirector %}