Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
72f3cb66
Commit
72f3cb66
authored
Apr 25, 2016
by
Andy Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trusty: Add retry in curl commands
parent
daf6be1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
configure.sh
cluster/gce/trusty/configure.sh
+1
-1
master.yaml
cluster/gce/trusty/master.yaml
+1
-1
node.yaml
cluster/gce/trusty/node.yaml
+1
-1
No files found.
cluster/gce/trusty/configure.sh
View file @
72f3cb66
...
@@ -24,7 +24,7 @@ download_kube_env() {
...
@@ -24,7 +24,7 @@ download_kube_env() {
# Fetch kube-env from GCE metadata server.
# Fetch kube-env from GCE metadata server.
readonly
tmp_install_dir
=
"/var/cache/kubernetes-install"
readonly
tmp_install_dir
=
"/var/cache/kubernetes-install"
mkdir
-p
"
${
tmp_install_dir
}
"
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"
\
-H
"X-Google-Metadata-Request: True"
\
-o
"
${
tmp_install_dir
}
/kube_env.yaml"
\
-o
"
${
tmp_install_dir
}
/kube_env.yaml"
\
http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-env
http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-env
...
...
cluster/gce/trusty/master.yaml
View file @
72f3cb66
...
@@ -19,7 +19,7 @@ script
...
@@ -19,7 +19,7 @@ script
set -o nounset
set -o nounset
# Fetch the script for installing master binary and configuration files.
# 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" \
-H "X-Google-Metadata-Request
:
True" \
-o /etc/kube-configure.sh \
-o /etc/kube-configure.sh \
http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh
http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh
...
...
cluster/gce/trusty/node.yaml
View file @
72f3cb66
...
@@ -19,7 +19,7 @@ script
...
@@ -19,7 +19,7 @@ script
set -o nounset
set -o nounset
# Fetch the script for installing nodes binary and configuration files.
# 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" \
-H "X-Google-Metadata-Request
:
True" \
-o /etc/kube-configure.sh \
-o /etc/kube-configure.sh \
http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh
http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment