Skip to content

Commit

Permalink
Trusty: Add retry in curl commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Zheng committed Apr 25, 2016
1 parent daf6be1 commit 72f3cb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/gce/trusty/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ download_kube_env() {
# Fetch kube-env from GCE metadata server.
readonly tmp_install_dir="/var/cache/kubernetes-install"
mkdir -p "${tmp_install_dir}"
curl --fail --silent --show-error \
curl --fail --retry 5 --retry-delay 3 --silent --show-error \
-H "X-Google-Metadata-Request: True" \
-o "${tmp_install_dir}/kube_env.yaml" \
http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-env
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/trusty/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ script
set -o nounset

# Fetch the script for installing master binary and configuration files.
curl --fail --silent --show-error \
curl --fail --retry 5 --retry-delay 3 --silent --show-error \
-H "X-Google-Metadata-Request: True" \
-o /etc/kube-configure.sh \
http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/trusty/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ script
set -o nounset

# Fetch the script for installing nodes binary and configuration files.
curl --fail --silent --show-error \
curl --fail --retry 5 --retry-delay 3 --silent --show-error \
-H "X-Google-Metadata-Request: True" \
-o /etc/kube-configure.sh \
http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh
Expand Down

1 comment on commit 72f3cb6

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 22556 outcome was FAILURE
Summary: Exit code 1 Build time: 00:15:35

Please sign in to comment.