Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 9fa6a69

Browse files
committed
for loop and --retry-connrefused not avail
1 parent 0dda4bb commit 9fa6a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parts/k8s/kubernetesmastercustomdata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ MASTER_ARTIFACTS_CONFIG_PLACEHOLDER
298298
ETCD_VER=v{{WrapAsVariable "etcdVersion"}}
299299
DOWNLOAD_URL={{WrapAsVariable "etcdDownloadURLBase"}}
300300
mkdir -p /tmp/etcd-download
301-
curl --retry 5 --retry-delay 10 --retry-max-time 30 --retry-connrefused -L ${DOWNLOAD_URL}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
301+
for i in 1 2 3 4 5; do curl --retry 5 --retry-delay 10 --retry-max-time 30 -L ${DOWNLOAD_URL}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz; done
302302
tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /usr/bin/ --strip-components=1
303303
useradd -U "etcd" > 2&>1
304304
usermod -p "$(head -c 32 /dev/urandom | base64)" "etcd"

0 commit comments

Comments
 (0)