Pull from Spegel/Embedded Registry Mirror #14095
-
|
Is your feature request related to a problem? Please describe. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
You can. That is how it works. When the embedded registry is enabled, containerd is configured to pull from spegel as a mirror for other upstream registries. You can also pull directly from it, if you want, and assuming the content is available in containerd. See the docs: https://docs.k3s.io/installation/registry-mirror#enabling-the-distributed-oci-registry-mirror
|
Beta Was this translation helpful? Give feedback.
-
|
Hi Brandon, |
Beta Was this translation helpful? Give feedback.
-
|
I did, and the registry mirror is working fine for starting up pods, but it is not working for vault-secrets-webhook, so I opened an issue in that project as well. I tend to think that vault-secrets-webhook needs something special from the registry side, which K3s embedded registry is lacking. Perhaps the webhook is using a different (from the standard image pull) HTTP method or something like that. The webhook is querying the registry to determine the container's |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the clarification. I've reported this to the vault-secrets-webhook issue tracker since I don't think I can resolve it myself. Hopefully, they'll eventually make the webhook compatible with K3s's embedded registry mirror. Just for the record, I found a very similar issue: #9870. |
Beta Was this translation helpful? Give feedback.
Spegel must be used as a mirror (proxy), with the upstream registry host set in the
nsquery parameter. You cannot pull directly from it without specifying the upstream host that it is mirroring.See: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#registry-proxying