feat(k3s): 版本升级&国内加速镜像优化

这个提交包含在:
2025-03-17 14:48:52 +08:00
未验证
父节点 8b69e87e5b
当前提交 bab0592225
修改 3 个文件,包含 4 行新增4 行删除
+1 -2
查看文件
@@ -6,8 +6,7 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms: nodeSelectorTerms:
- matchExpressions: - matchExpressions:
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/control-plane
operator: In operator: In
values: values:
- "true" - "true"
+1 -1
查看文件
@@ -25,7 +25,7 @@ mkdir -p /etc/rancher/k3s && vim /etc/rancher/k3s/config.yaml
### 安装k3s 此处注意安装类型 是server 还是 agent ### 安装k3s 此处注意安装类型 是server 还是 agent
```shell ```shell
curl -sfL https://get.k3s.io | \ curl -sfL https://get.k3s.io | \
INSTALL_K3S_VERSION=v1.32.1+k3s1 \ INSTALL_K3S_VERSION=v1.32.2+k3s1 \
INSTALL_K3S_MIRROR=cn \ INSTALL_K3S_MIRROR=cn \
sh -s - agent sh -s - agent
``` ```
+2 -1
查看文件
@@ -1,7 +1,8 @@
mirrors: mirrors:
"docker.io": "docker.io":
endpoint: endpoint:
- "proxy.1panel.live" - "docker.m.daocloud.io"
- "ccr.ccs.tencentyun.com"
"ghcr.io": "ghcr.io":
endpoint: endpoint:
- "ghcr.m.daocloud.io" - "ghcr.m.daocloud.io"