temp
This commit is contained in:
@@ -4,30 +4,33 @@ sudo vim /etc/rancher/k3s/registries.yaml
|
||||
mirrors:
|
||||
docker.io:
|
||||
endpoint:
|
||||
- "https://docker.1ms.run"
|
||||
- "https://docker.m.daocloud.io"
|
||||
- "https://docker.1panel.live"
|
||||
- "https://docker-0.unsee.tech"
|
||||
- "https://dytt.online"
|
||||
- "https://lispy.org"
|
||||
- "https://docker.xiaogenban1993.com"
|
||||
- "https://666860.xyz"
|
||||
- "https://hub.rat.dev"
|
||||
- "https://demo.52013120.xyz"
|
||||
- "https://proxy.vvvv.ee"
|
||||
- "https://registry.cyou"
|
||||
- "http://hub-mirror.c.163.com"
|
||||
|
||||
# rancher 镜像加速
|
||||
"rancher":
|
||||
- 'https://docker.1ms.run'
|
||||
- 'https://docker.m.daocloud.io'
|
||||
- 'https://docker.1panel.live'
|
||||
- 'https://docker-0.unsee.tech'
|
||||
- 'https://dytt.online'
|
||||
- 'https://lispy.org'
|
||||
- 'https://docker.xiaogenban1993.com'
|
||||
- 'https://666860.xyz'
|
||||
- 'https://hub.rat.dev'
|
||||
- 'https://demo.52013120.xyz'
|
||||
- 'https://proxy.vvvv.ee'
|
||||
- 'https://registry.cyou'
|
||||
- 'http://hub-mirror.c.163.com'
|
||||
|
||||
"registry.k8s.io":
|
||||
endpoint:
|
||||
- "https://docker.1ms.run/rancher"
|
||||
- 'https://k8s.m.daocloud.io'
|
||||
- 'https://docker.m.daocloud.io'
|
||||
# rancher 镜像加速
|
||||
'rancher':
|
||||
endpoint:
|
||||
- 'https://docker.1ms.run/rancher'
|
||||
|
||||
configs:
|
||||
"docker.1ms.run":
|
||||
'docker.1ms.run':
|
||||
tls:
|
||||
insecure_skip_verify: true
|
||||
|
||||
```
|
||||
|
||||
```bash
|
||||
@@ -44,25 +47,37 @@ sudo systemctl restart k3s-agent
|
||||
vim /etc/containerd/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.1panel.live",
|
||||
"https://docker.1ms.run",
|
||||
"https://docker.m.daocloud.io",
|
||||
"https://docker.1panel.live",
|
||||
"https://dytt.online",
|
||||
"https://docker-0.unsee.tech",
|
||||
"https://lispy.org",
|
||||
"https://docker.xiaogenban1993.com",
|
||||
"https://666860.xyz",
|
||||
"https://hub.rat.dev",
|
||||
"https://docker.m.daocloud.io",
|
||||
"https://demo.52013120.xyz",
|
||||
"https://proxy.vvvv.ee",
|
||||
"https://registry.cyou"
|
||||
]
|
||||
|
||||
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."registry.k8s.io"]
|
||||
endpoint = [
|
||||
"https://k8s.m.daocloud.io"
|
||||
"https://docker.m.daocloud.io",
|
||||
]
|
||||
```
|
||||
|
||||
# 重启 containerd
|
||||
|
||||
```bash
|
||||
sudo systemctl restart containerd
|
||||
sudo ctr image pull docker.io/library/verdaccio:latest
|
||||
|
||||
@@ -75,4 +90,22 @@ sudo ctr -n k8s.io images delete docker.m.daocloud.io/rancher/mirrored-pause:3.6
|
||||
|
||||
# 查看镜像
|
||||
sudo ctr -n k8s.io images ls | grep pause
|
||||
```
|
||||
```
|
||||
|
||||
## 安装 cluster-api-controller
|
||||
|
||||
```bash
|
||||
registry.k8s.io/cluster-api/cluster-api-controller:v1.10.6
|
||||
|
||||
sudo ctr image pull registry.k8s.io/cluster-api/cluster-api-controller:v1.10.6
|
||||
|
||||
# proxy 镜像
|
||||
sudo ctr -n k8s.io image pull k8s.m.daocloud.io/cluster-api/cluster-api-controller:v1.10.6
|
||||
|
||||
# 打标签
|
||||
sudo ctr -n k8s.io images tag k8s.m.daocloud.io/cluster-api/cluster-api-controller:v1.10.6 registry.k8s.io/cluster-api/cluster-api-controller:v1.10.6
|
||||
|
||||
# 删除镜像
|
||||
sudo ctr -n k8s.io images delete k8s.m.daocloud.io/cluster-api/cluster-api-controller:v1.10.6
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user