k3d-io / k3d

Little helper to run CNCF's k3s in Docker
https://k3d.io/
MIT License
5.41k stars 460 forks source link

[FEATURE] Spegel embeded registry #1400

Open 123BLiN opened 8 months ago

123BLiN commented 8 months ago

Is your feature request related to a problem or a Pull Request

Please link to the issue/PR here and explain how your request is related to it.

Scope of your request

Ability to use new Spegel embeded registry that was recently added into k3s https://docs.k3s.io/installation/registry-mirror#enabling-the-distributed-oci-registry-mirror

Describe the solution you'd like

Document how it can be used or maybe some changes are required?

Describe alternatives you've considered

Try to setup it using registries.config section but not sure about the additional port and also additional flag provided to nodes --embedded-registry

gbonnefille commented 4 months ago

I also tried to activate the embedded registry.

I used:

k3d cluster create --k3s-arg "--embedded-registry@server:0"

But nothing easier to detect. So I run a test I found in k3s itself:

kubectl get --raw /api/v1/nodes/k3d-k3s-default-server-0/proxy/metrics | grep -F 'spegel_advertised_images{registry=\"docker.io\"}'

But nothing.

Any help appreciated.