If you're looking for proxy for helm, maybe you can try cloudflare-helm-proxy.
- click the "Deploy With Workers" button
- follow the instructions to fork and deploy
- update routes as you requirement
- use cloudflare worker host: only support proxy one registry
const routes = { "${workername}.${username}.workers.dev/": "https://registry-1.docker.io", };
- use custom domain: support proxy multiple registries route by host
- host your domain DNS on cloudflare
- add
Arecord of xxx.example.com to192.0.2.1 - deploy this project to cloudflare workers
- add
xxx.example.com/*to HTTP routes of workers - add more records and modify the config as you need
const routes = { "docker.bhq.sh.cn": "https://registry-1.docker.io", "quay.bhq.sh.cn": "https://quay.io", "gcr.bhq.sh.cn": "https://k8s.gcr.io", "k8s-gcr.bhq.sh.cn": "https://k8s.gcr.io", "ghcr.bhq.sh.cn": "https://ghcr.io", };
- 设置docker加速源
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<EOF { "registry-mirrors": ["https://docker.bhq.sh.cn"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker