Browse Source

Calico fixes

Dan Osborne 7 years ago
parent
commit
284f03e958
2 changed files with 7 additions and 0 deletions
  1. 1 0
      roles/calico_master/tasks/certs.yml
  2. 6 0
      roles/calico_master/tasks/main.yml

+ 1 - 0
roles/calico_master/tasks/certs.yml

@@ -39,6 +39,7 @@
 - name: Create secret
   oc_secret:
     name: calico-etcd-secrets
+    state: present
     namespace: kube-system
     files:
     - name: etcd-key

+ 6 - 0
roles/calico_master/tasks/main.yml

@@ -15,6 +15,12 @@
     resource_name: privileged
     state: present
 
+- name: Set default selector for kube-system
+  command: >
+    {{ openshift_client_binary }}
+    --config={{ openshift.common.config_base }}/master/admin.kubeconfig
+    annotate  ns kube-system openshift.io/node-selector="" --overwrite
+
 - name: Calico Master | Create temp directory
   command: mktemp -d /tmp/openshift-ansible-XXXXXXX
   register: mktemp