https://github.com/devops-ws/k3d-guide
https://github.com/devops-ws/k3d-guide
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/devops-ws/k3d-guide
- Owner: devops-ws
- Created: 2023-01-18T06:01:29.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T07:24:13.000Z (about 3 years ago)
- Last Synced: 2025-10-30T18:43:08.442Z (5 months ago)
- Homepage: https://jenkins-zh.cn
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k3d-guide
## Registry
```yaml
# this file will be mounted into /etc/rancher/k3s/registries.yaml
mirrors:
"10.121.218.184:30002":
endpoint:
- "http://10.121.218.184:30002"
"docker.io":
endpoint:
- "http://10.121.218.184:30002/v2/cache"
"quay.io":
endpoint:
- "http://10.121.218.184:30002/v2/quay.io"
"ghcr.io":
endpoint:
- "http://10.121.218.184:30002/v2/ghcr.io"
configs:
"10.121.218.184:30002":
auth:
username: robot_readonly
password: npcCnfZicoeZTupZnX39ew9cfIvldyZV
tls:
insecure_skip_verify: true
```
下面的命令参数可以让 k3d 使用自定义的 Registry 配置,实现拉取镜像时不做 TLS 校验:
```shell
k3d cluster create --registry-config config/registry/default.yaml
```
k3d 内部使用 containerd 作为容器运行时,更多有关 containerd 的信息请参考[这里](https://github.com/devops-ws/containerd-guide)。
## 指定 k3s 镜像
```shell
k3d cluster create --image 10.121.218.184:30002/cache/rancher/k3s
```