upgrade to Kubernetes v1.5.1 and ETCD v3.0.15
parent
fa9972740b
commit
d53aca31a5
|
@ -39,17 +39,17 @@ sudo cp ca.pem kubernetes-key.pem kubernetes.pem /etc/etcd/
|
|||
Download the official etcd release binaries from `coreos/etcd` GitHub project:
|
||||
|
||||
```
|
||||
wget https://github.com/coreos/etcd/releases/download/v3.0.10/etcd-v3.0.10-linux-amd64.tar.gz
|
||||
wget https://github.com/coreos/etcd/releases/download/v3.0.15/etcd-v3.0.15-linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
Extract and install the `etcd` server binary and the `etcdctl` command line client:
|
||||
|
||||
```
|
||||
tar -xvf etcd-v3.0.10-linux-amd64.tar.gz
|
||||
tar -xvf etcd-v3.0.15-linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
```
|
||||
sudo mv etcd-v3.0.10-linux-amd64/etcd* /usr/bin/
|
||||
sudo mv etcd-v3.0.15-linux-amd64/etcd* /usr/bin/
|
||||
```
|
||||
|
||||
All etcd data is stored under the etcd data directory. In a production cluster the data directory should be backed by a persistent disk. Create the etcd data directory:
|
||||
|
|
|
@ -46,16 +46,16 @@ sudo cp ca.pem kubernetes-key.pem kubernetes.pem /var/lib/kubernetes/
|
|||
Download the official Kubernetes release binaries:
|
||||
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kube-apiserver
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kube-apiserver
|
||||
```
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kube-controller-manager
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kube-controller-manager
|
||||
```
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kube-scheduler
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kube-scheduler
|
||||
```
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kubectl
|
||||
```
|
||||
|
||||
Install the Kubernetes binaries:
|
||||
|
@ -213,7 +213,7 @@ ExecStart=/usr/bin/kube-controller-manager \
|
|||
--master=http://INTERNAL_IP:8080 \
|
||||
--root-ca-file=/var/lib/kubernetes/ca.pem \
|
||||
--service-account-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \
|
||||
--service-cluster-ip-range=10.32.0.0/24 \
|
||||
--service-cluster-ip-range=10.32.0.0/16 \
|
||||
--v=2
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
@ -291,8 +291,8 @@ kubectl get componentstatuses
|
|||
NAME STATUS MESSAGE ERROR
|
||||
controller-manager Healthy ok
|
||||
scheduler Healthy ok
|
||||
etcd-1 Healthy {"health": "true"}
|
||||
etcd-0 Healthy {"health": "true"}
|
||||
etcd-1 Healthy {"health": "true"}
|
||||
etcd-2 Healthy {"health": "true"}
|
||||
```
|
||||
|
||||
|
|
|
@ -101,13 +101,13 @@ sudo tar -xvf cni-07a8a28637e97b22eb8dfe710eeae1344f69d16e.tar.gz -C /opt/cni
|
|||
Download and install the Kubernetes worker binaries:
|
||||
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kubectl
|
||||
```
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kube-proxy
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kube-proxy
|
||||
```
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubelet
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kubelet
|
||||
```
|
||||
|
||||
```
|
||||
|
@ -158,7 +158,6 @@ ExecStart=/usr/bin/kubelet \
|
|||
--cloud-provider= \
|
||||
--cluster-dns=10.32.0.10 \
|
||||
--cluster-domain=cluster.local \
|
||||
--configure-cbr0=true \
|
||||
--container-runtime=docker \
|
||||
--docker=unix:///var/run/docker.sock \
|
||||
--network-plugin=kubenet \
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
### OS X
|
||||
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/darwin/amd64/kubectl
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/darwin/amd64/kubectl
|
||||
chmod +x kubectl
|
||||
sudo mv kubectl /usr/local/bin
|
||||
```
|
||||
|
@ -13,7 +13,7 @@ sudo mv kubectl /usr/local/bin
|
|||
### Linux
|
||||
|
||||
```
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl
|
||||
wget https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kubectl
|
||||
chmod +x kubectl
|
||||
sudo mv kubectl /usr/local/bin
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue