-
-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Docker registry rewriting not supported because of old types #1179
Comments
Any maintainers know how much effort it would be to add this? Happy to do the work given a bit of direction. I want to use the rewrite functionality to rewrite image tags pulled via a k3d pullthrough proxy so that they appear in the cluster as being direct from the source (my orgs artifactory instance), I can just pull them from the source but want a working cache on my machine to make things as quick as possible. |
Hi @rassie & @maxsargentdev how are you including the custom configuration at the moment? |
I'm using a config file with a
Everything else is in the issue description (i.e. contents of Edit: I'm not using an internal registry, as far as I'm aware. |
@rassie , thanks for the input! |
I include the custom configuration inline as a file. I have made a change in my fork to allow the rewrite configuration to be added if you want to use it, small change really. That being said it only works via the config merge, not by extending the simple config API. |
Here you go: #1215 |
This has been released with k3d 5.5.0, I can confirm that containerd configuration is now updated with mirrors and rewriting. I don't have it working yet, but that's probably a Gitlab or a containerd problem, so this issue is done. Thank you @maxsargentdev and @iwilltry42! |
What did you do
Trying to use the following
registries.yaml
to rewrite DockerHub images to our Gitlab's dependency proxy:After creating a cluster with this configuration,
rewrite
is silently missing from/etc/rancher/k3s/registries.yaml
.What did you expect to happen
rewrite
should still be in/etc/rancher/k3s/registries.yaml
. The reason for this is thatMirror
struct is copied from an old version ofk3s
, which does not containRewrites
, whilek3s
itself has moved to using https://github.com/rancher/wharfie/, which containsRewrites
.To be fair, K3d documentation doesn't explicitely reference
rewrites
as being supported, but it does mention the file being "a regular k3s registries configuration file", which probably should count for something.Which OS & Architecture
Which version of
k3d
Which version of docker
The text was updated successfully, but these errors were encountered: