Raise delay and retry for rotate tokens (#5304)
Change-Id: I87844b43b9a18064e7a99567ce57c1ca1ffcc4a8pull/5310/head
parent
108a6297e9
commit
2c4e6b65d7
|
@ -4,8 +4,8 @@
|
||||||
register: default_token
|
register: default_token
|
||||||
changed_when: false
|
changed_when: false
|
||||||
until: default_token.rc == 0
|
until: default_token.rc == 0
|
||||||
delay: 1
|
delay: 4
|
||||||
retries: 5
|
retries: 10
|
||||||
|
|
||||||
- name: Rotate Tokens | Get default token data
|
- name: Rotate Tokens | Get default token data
|
||||||
command: "{{ bin_dir }}/kubectl --kubeconfig /etc/kubernetes/admin.conf get secrets {{ default_token.stdout }} -ojson"
|
command: "{{ bin_dir }}/kubectl --kubeconfig /etc/kubernetes/admin.conf get secrets {{ default_token.stdout }} -ojson"
|
||||||
|
|
|
@ -59,7 +59,7 @@ tmpdir=$(mktemp -d /tmp/calico_typha_certs.XXXXXX)
|
||||||
trap 'rm -rf "${tmpdir}"' EXIT
|
trap 'rm -rf "${tmpdir}"' EXIT
|
||||||
cd "${tmpdir}"
|
cd "${tmpdir}"
|
||||||
|
|
||||||
mkdir -p "${SSLDIR} ${CADIR}"
|
mkdir -p ${SSLDIR} ${CADIR}
|
||||||
|
|
||||||
# Root CA
|
# Root CA
|
||||||
if [ -e "$CADIR/ca.key" ]; then
|
if [ -e "$CADIR/ca.key" ]; then
|
||||||
|
|
Loading…
Reference in New Issue