Browse Source

Retry service account bootstrap kubeconfig creation

Pulled back from the larger refactor so this job can be enabled.
Clayton Coleman 7 years ago
parent
commit
9091f508da
1 changed files with 3 additions and 0 deletions
  1. 3 0
      roles/openshift_master/tasks/bootstrap.yml

+ 3 - 0
roles/openshift_master/tasks/bootstrap.yml

@@ -4,6 +4,9 @@
 - name: create service account kubeconfig with csr rights
   command: "oc serviceaccounts create-kubeconfig node-bootstrapper -n openshift-infra"
   register: kubeconfig_out
+  until: kubeconfig_out.rc == 0
+  retries: 24
+  delay: 5
 
 - name: put service account kubeconfig into a file on disk for bootstrap
   copy: