openshift-istio / openshift-ansible

OpenShift Installation and Configuration Management
https://install.openshift.com
Apache License 2.0
6 stars 4 forks source link

Istio installer job should be pinned to the master node #4

Closed siamaksade closed 6 years ago

siamaksade commented 6 years ago

Istio installer ansible playbooks assume running on the master node and fails if it runs on an app node. There should be a nodeselector in the job yaml to pin the job to the master node:

siamaksade commented 6 years ago

I managed to deploy it by adding the following nodeselector to the job:

        nodeSelector:
          node-role.kubernetes.io/master: "true"

I had to label the master node with node-role.kubernetes.io/compute: "true". It's needed because In OCP 3.9 by default all pods have this nodeselector which results in a invalid combination on the job unless master is also labeled so:

        nodeSelector:
          node-role.kubernetes.io/master: "true"
          node-role.kubernetes.io/compute: "true"
knrc commented 6 years ago

This should now be fixed in the latest instructions, please give them a try and open a new issue if you still have problems.