-
-
Notifications
You must be signed in to change notification settings - Fork 469
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] k3d-managed registry with non-5000 port not accessible from within the cluster #1406
Comments
i encountered this bug while using the registry container that |
The I'm happy that @yakom offered to take a stab at this - that would be great! |
this is a new codebase to me so it might take me a while, but i'll try.
@iwilltry42 is it indeed a feature request? these port numbers have to match, otherwise the registry is not usable - at least with what i think is the default usage, one even displayed by the |
@yakom , yes it is indeed a feature request. What is not possible as per this comment is to reach the registry from within a pod inside the cluster on the exposed port. That is because the exposed port that is set via the
Just what I meant with "enhance --port to also tweak the internal container port the registry listens on" - might be badly phrased from my side. It was just convenience that we can safely assume |
What did you do
How was the cluster created?
What did you do afterwards?
Tried to access the registry
k3d-registry.localhost:12345
from a pod in the k3d clusterWhat did you expect to happen
Since registry is exposed on
:12345
, and k3d injects this domain in coredns' NodeHosts,http://k3d-registry.localhost:12345/
should be accessible from within the cluster. Insteadk3d-registry.localhost:5000
is accessible. I don't want to usehost.k3d.internal:12345
as it requires us to tweak the domains at application layer, which isn't ideal.If we map
k3d-registry.localhost
to host system's IP (like we do for host.k3d.internal), instead of the registry IP, then the above works as expected.Screenshots or terminal output
Which OS & Architecture
Debian on WSL2
Which version of
k3d
k3d version v5.6.0
k3s version v1.27.4-k3s1 (default)
Which version of docker
The text was updated successfully, but these errors were encountered: