소스 검색

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: