更新镜像地址和安装命令,调整 K3S_NODE_IP 和 K3S_NODE_EXTERNAL_IP 参数
This commit is contained in:
@@ -4,28 +4,5 @@
|
|||||||
mirrors:
|
mirrors:
|
||||||
docker.io:
|
docker.io:
|
||||||
endpoint:
|
endpoint:
|
||||||
- "https://docker.m.daocloud.io"
|
|
||||||
- "https://dockerproxy.net/"
|
|
||||||
- "https://docker.cnb.cool/kevisual/dev-env"
|
- "https://docker.cnb.cool/kevisual/dev-env"
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
|
||||||
#cat config.toml
|
|
||||||
disabled_plugins = ["cri"]
|
|
||||||
|
|
||||||
[plugins."io.containerd.grpc.v1.cri".registry]
|
|
||||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
|
|
||||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
|
|
||||||
endpoint = [
|
|
||||||
"https://docker.1ms.run",
|
|
||||||
"https://docker.m.daocloud.io",
|
|
||||||
"https://dockerproxy.net/",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# [plugins."io.containerd.grpc.v1.cri".registry.mirrors."registry.k8s.io"]
|
|
||||||
# endpoint = [
|
|
||||||
# "https://k8s.m.daocloud.io"
|
|
||||||
# "https://docker.m.daocloud.io",
|
|
||||||
# ]
|
|
||||||
```
|
|
||||||
@@ -32,7 +32,7 @@ kubectl label nodes light machine=light --overwrite
|
|||||||
```sh
|
```sh
|
||||||
# aliyun, ip: 121.199.37.154
|
# aliyun, ip: 121.199.37.154
|
||||||
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_NODE_IP=121.199.37.154 K3S_NODE_EXTERNAL_IP=121.199.37.154 K3S_URL=https://light.xiongxiao.me:6443 K3S_TOKEN=K1035ea36d4925cfd0a7f7938fb3eff1225e458c1aee4fb99bda40bb95f529913bf::server:03e3ef7d17dadc2471b0f2369248250d sh -
|
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_NODE_IP=121.199.37.154 K3S_NODE_EXTERNAL_IP=121.199.37.154 K3S_URL=https://light.xiongxiao.me:6443 K3S_TOKEN=K1035ea36d4925cfd0a7f7938fb3eff1225e458c1aee4fb99bda40bb95f529913bf::server:03e3ef7d17dadc2471b0f2369248250d sh -
|
||||||
-- --pause-image=docker.1ms.run/rancher/mirrored-pause:3.9
|
-- --pause-image=docker.cnb.cool/kevisual/dev-env/mirrored-pause:3.6
|
||||||
|
|
||||||
|
|
||||||
kubectl label nodes aliyun machine=aliyun --overwrite
|
kubectl label nodes aliyun machine=aliyun --overwrite
|
||||||
|
|||||||
Reference in New Issue
Block a user