From 14067ad9262d681cda82e52f83202ec7e3332a78 Mon Sep 17 00:00:00 2001 From: yeasy Date: Sat, 14 Mar 2026 08:45:42 -0700 Subject: [PATCH] Fix outdated versions, template variables and version inconsistencies - Update K8s Dashboard v2.0.0 to v2.7.0 - Update etcd v3.4.0 to v3.5.17 - Update PostgreSQL 15 to 16 for consistency - Update Node.js 12 to 20 (current LTS) - Replace unresolved GitBook template variables (CODE1/2/3/9) --- 06_repository/6.2_registry.md | Bin 4646 -> 4666 bytes 06_repository/6.4_nexus3_registry.md | Bin 5115 -> 5126 bytes 07_dockerfile/7.8_volume.md | 6 +++--- 14_kubernetes_setup/14.7_dashboard.md | 2 +- 15_etcd/15.2_install.md | 10 +++++----- appendix/repo/nodejs.md | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/06_repository/6.2_registry.md b/06_repository/6.2_registry.md index 32f7dbb4666301ef552d563f439038fff7f8855b..114409cedb79b49e4ca29a109e9f1f91016ef2bf 100644 GIT binary patch delta 50 zcmZ3cvP)&cPJWmC2B~u8a=_010^% AWdHyG delta 30 hcmdm`vP@;dPId-oe-~FHhKVQYAWUP1&5?``1pt~N32*=a diff --git a/06_repository/6.4_nexus3_registry.md b/06_repository/6.4_nexus3_registry.md index ceed15bfc43e84911dd706c47bd35c6eb6dbc3e5..8f3aa90d5d874a2ac416edd3534474814bb6dcba 100644 GIT binary patch delta 44 zcmV+{0Mq~bCx$4na{&iVWq5USATzUi0fGq<=cj?@oQdSSljXXT=&q#buYt1z3-}1W CX%)Tz delta 33 kcmZqE_^rO7n30{q+26(0l3{ZdV-qKYW5}?XkNXD)0H*2*C;$Ke diff --git a/07_dockerfile/7.8_volume.md b/07_dockerfile/7.8_volume.md index 92a2445..43c18c1 100644 --- a/07_dockerfile/7.8_volume.md +++ b/07_dockerfile/7.8_volume.md @@ -126,7 +126,7 @@ VOLUME /data #### 数据库持久化 ```docker -FROM postgres:15 +FROM postgres:16 VOLUME /var/lib/postgresql/data ``` @@ -181,7 +181,7 @@ $ docker inspect mycontainer --format '{{json .Mounts}}' | jq ```yaml services: db: - image: postgres:15 + image: postgres:16 volumes: # 命名卷(推荐) @@ -224,7 +224,7 @@ $ docker run -v mysql_data:/var/lib/mysql mysql:8.0 ```docker ## 数据库必须使用卷 -FROM postgres:15 +FROM postgres:16 VOLUME /var/lib/postgresql/data ``` diff --git a/14_kubernetes_setup/14.7_dashboard.md b/14_kubernetes_setup/14.7_dashboard.md index 5c88951..6475729 100644 --- a/14_kubernetes_setup/14.7_dashboard.md +++ b/14_kubernetes_setup/14.7_dashboard.md @@ -9,7 +9,7 @@ 执行以下命令即可部署 Dashboard: ```bash -kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml +kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml ``` ### 14.7.2 访问 diff --git a/15_etcd/15.2_install.md b/15_etcd/15.2_install.md index d745762..07be720 100644 --- a/15_etcd/15.2_install.md +++ b/15_etcd/15.2_install.md @@ -13,12 +13,12 @@ 例如,使用 `curl` 工具下载压缩包,并解压。 ```bash -$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.4.0/etcd-v3.4.0-linux-amd64.tar.gz -o etcd-v3.4.0-linux-amd64.tar.gz +$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.5.17/etcd-v3.5.17-linux-amd64.tar.gz -o etcd-v3.5.17-linux-amd64.tar.gz ## 国内用户可选择就近的网络加速方式(以可用镜像站为准) -$ tar xzvf etcd-v3.4.0-linux-amd64.tar.gz -$ cd etcd-v3.4.0-linux-amd64 +$ tar xzvf etcd-v3.5.17-linux-amd64.tar.gz +$ cd etcd-v3.5.17-linux-amd64 ``` 解压后,可以看到文件包括 @@ -70,8 +70,8 @@ $ docker run \ -p 2379:2379 \ -p 2380:2380 \ --mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \ ---name etcd-gcr-v3.4.0 \ -quay.io/coreos/etcd:v3.4.0 \ +--name etcd-gcr-v3.5.17 \ +quay.io/coreos/etcd:v3.5.17 \ /usr/local/bin/etcd \ --name s1 \ --data-dir /etcd-data \ diff --git a/appendix/repo/nodejs.md b/appendix/repo/nodejs.md index 66e1d63..91c5a68 100644 --- a/appendix/repo/nodejs.md +++ b/appendix/repo/nodejs.md @@ -11,7 +11,7 @@ 在项目中创建一个 Dockerfile。 ```docker -FROM node:12 +FROM node:20 ## replace this with your application's default port EXPOSE 8888 @@ -33,7 +33,7 @@ $ docker run -it --rm \ --mount type=bind,src="$(pwd)",target=/usr/src/myapp \ -w /usr/src/myapp \ - node:12-alpine \ + node:20-alpine \ node your-daemon-or-script.js ```