Fix url to etcd binary (#8522)

* Fix url to etcd binary

etcd should be 3.12 for kubernetes 1.10, also fix the URL (probably was broken after migration to Hugo)

* Make Curl command safer

You really only need that variable to be set for the specific command, so no need to export it.

Also, when using Bash variables in a string, you should enclose them in curly braces to delineate them from the rest of the string. This helps prevent problems where Bash can't tell where the name of the variable ends and the next part of the string begins.
This commit is contained in:
Denis Gladkikh 2018-05-18 10:31:52 -07:00 committed by k8s-ci-robot
parent 39632504d9
commit 1998ab735f
1 changed files with 1 additions and 2 deletions

View File

@ -222,8 +222,7 @@ Please select one of the tabs to see installation instructions for the respectiv
1. First you will install etcd binaries like so:
```shell
export ETCD_VERSION=v3.1.10
curl -sSL https://github.com/coreos/etcd/releases/download//etcd--linux-amd64.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin/
ETCD_VERSION="v3.1.12" curl -sSL https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin/
rm -rf etcd--linux-amd64*
```