ソースを参照

Retry service account bootstrap kubeconfig creation

Pulled back from the larger refactor so this job can be enabled.
Clayton Coleman 7 年 前
コミット
9091f508da
1 ファイル変更3 行追加0 行削除
  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: