修改etcd的配置错误
parent
b4d3db7a01
commit
8e92f523e3
|
@ -22,8 +22,8 @@ $ cp ca.pem kubernetes-key.pem kubernetes.pem /etc/kubernetes/ssl
|
|||
|
||||
``` bash
|
||||
$ https://github.com/coreos/etcd/releases/download/v3.1.5/etcd-v3.1.5-linux-amd64.tar.gz
|
||||
$ tar -xvf etcd-v3.1.4-linux-amd64.tar.gz
|
||||
$ sudo mv etcd-v3.1.4-linux-amd64/etcd* /root/local/bin
|
||||
$ tar -xvf etcd-v3.1.5-linux-amd64.tar.gz
|
||||
$ sudo mv etcd-v3.1.5-linux-amd64/etcd* /usr/local/bin
|
||||
```
|
||||
|
||||
## 创建 etcd 的 systemd unit 文件
|
||||
|
@ -42,7 +42,7 @@ Documentation=https://github.com/coreos
|
|||
Type=notify
|
||||
WorkingDirectory=/var/lib/etcd/
|
||||
EnvironmentFile=-/etc/etcd/etcd.conf
|
||||
ExecStart=/usr/bin/etcd \
|
||||
ExecStart=/usr/local/bin/etcd \
|
||||
--name ${ETCD_NAME} \
|
||||
--cert-file=/etc/kubernetes/ssl/kubernetes.pem \
|
||||
--key-file=/etc/kubernetes/ssl/kubernetes-key.pem \
|
||||
|
@ -120,4 +120,4 @@ member e5c92ea26c4edba0 is healthy: got healthy result from https://172.20.0.113
|
|||
cluster is healthy
|
||||
```
|
||||
|
||||
结果最后一行为 `cluster is healthy` 时表示集群服务正常。
|
||||
结果最后一行为 `cluster is healthy` 时表示集群服务正常。
|
||||
|
|
Loading…
Reference in New Issue