mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 08:27:25 +00:00
Update etcd to v3.5.29
This commit is contained in:
@@ -13,12 +13,12 @@
|
||||
例如,使用 `curl` 工具下载压缩包,并解压。
|
||||
|
||||
```bash
|
||||
$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.5.21/etcd-v3.5.21-linux-amd64.tar.gz -o etcd-v3.5.21-linux-amd64.tar.gz
|
||||
$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.5.29/etcd-v3.5.29-linux-amd64.tar.gz -o etcd-v3.5.29-linux-amd64.tar.gz
|
||||
|
||||
## 国内用户可选择就近的网络加速方式(以可用镜像站为准)
|
||||
|
||||
$ tar xzvf etcd-v3.5.21-linux-amd64.tar.gz
|
||||
$ cd etcd-v3.5.21-linux-amd64
|
||||
$ tar xzvf etcd-v3.5.29-linux-amd64.tar.gz
|
||||
$ cd etcd-v3.5.29-linux-amd64
|
||||
```
|
||||
解压后,可以看到文件包括
|
||||
|
||||
@@ -65,8 +65,8 @@ $ docker run \
|
||||
-p 2379:2379 \
|
||||
-p 2380:2380 \
|
||||
--mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \
|
||||
--name etcd-gcr-v3.5.21 \
|
||||
quay.io/coreos/etcd:v3.5.21 \
|
||||
--name etcd-gcr-v3.5.29 \
|
||||
quay.io/coreos/etcd:v3.5.29 \
|
||||
/usr/local/bin/etcd \
|
||||
--name s1 \
|
||||
--data-dir /etcd-data \
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
services:
|
||||
|
||||
node1:
|
||||
image: quay.io/coreos/etcd:v3.5.21
|
||||
image: quay.io/coreos/etcd:v3.5.29
|
||||
volumes:
|
||||
- node1-data:/etcd-data
|
||||
expose:
|
||||
@@ -40,7 +40,7 @@ services:
|
||||
- docker-etcd
|
||||
|
||||
node2:
|
||||
image: quay.io/coreos/etcd:v3.5.21
|
||||
image: quay.io/coreos/etcd:v3.5.29
|
||||
volumes:
|
||||
- node2-data:/etcd-data
|
||||
networks:
|
||||
@@ -72,7 +72,7 @@ services:
|
||||
- docker-etcd
|
||||
|
||||
node3:
|
||||
image: quay.io/coreos/etcd:v3.5.21
|
||||
image: quay.io/coreos/etcd:v3.5.29
|
||||
volumes:
|
||||
- node3-data:/etcd-data
|
||||
networks:
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
|
||||
在[下载页面](https://getfedora.org/coreos/download/) `Bare Metal & Virtualized` 标签页下载 ISO。
|
||||
|
||||
### 17.2.2 编写 Butane 配置
|
||||
### 17.2.2 编写 FCC
|
||||
|
||||
> **注意**:Fedora CoreOS 配置工具已从 `fcct` (Fedora CoreOS Config Transpiler) 更名为 **Butane**。新版本使用 `.bu` 扩展名和更新的 spec 版本。
|
||||
FCC 是 Fedora CoreOS Configuration (Fedora CoreOS 配置) 的简称。
|
||||
|
||||
```yaml
|
||||
## example.bu
|
||||
## example.fcc
|
||||
|
||||
variant: fcos
|
||||
version: 1.6.0
|
||||
version: 1.0.0
|
||||
passwd:
|
||||
users:
|
||||
- name: core
|
||||
@@ -21,10 +21,10 @@ passwd:
|
||||
```
|
||||
将 `ssh-rsa AAAA...` 替换为自己的 SSH 公钥 (位于 `~/.ssh/id_rsa.pub`)。
|
||||
|
||||
### 17.2.3 转换 Butane 配置为 Ignition
|
||||
### 17.2.3 转换 FCC 为 Ignition
|
||||
|
||||
```bash
|
||||
$ docker run -i --rm quay.io/coreos/butane:release --pretty --strict < example.bu > example.ign
|
||||
$ docker run -i --rm quay.io/coreos/fcct:v0.5.0 --pretty --strict < example.fcc > example.ign
|
||||
```
|
||||
|
||||
### 17.2.4 挂载 ISO 启动虚拟机并安装
|
||||
|
||||
@@ -82,7 +82,7 @@ services:
|
||||
- prometheus
|
||||
|
||||
node-exporter:
|
||||
image: prom/node-exporter:v1.11.1
|
||||
image: prom/node-exporter:v1.8.2
|
||||
ports:
|
||||
- "9100:9100"
|
||||
networks:
|
||||
|
||||
@@ -122,7 +122,6 @@ networks:
|
||||
driver: bridge
|
||||
```
|
||||
启动后访问 `http://localhost:8080` 查看:
|
||||
|
||||
- 容器性能统计
|
||||
- 系统资源使用情况
|
||||
- 历史性能数据
|
||||
@@ -177,7 +176,7 @@ services:
|
||||
- monitoring
|
||||
|
||||
node-exporter:
|
||||
image: prom/node-exporter:v1.11.1
|
||||
image: prom/node-exporter:v1.8.2
|
||||
container_name: node-exporter
|
||||
ports:
|
||||
- "9100:9100"
|
||||
|
||||
Reference in New Issue
Block a user