You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the PR linked above it was discussed the lack of DNS name to access the host services. host.k3d.internal was introduced to point to the IP address host.docker.internal points to.
The introduction of another DNS name in addition to the well-known host.docker.internal makes the code not be that nice as it is explicitly pointing to a k3d specific DNS name. For example, kind as an alternative to k3d, provides automatic resolving of host.docker.internal similar with host.k3d.internal which sounds like a sensible solution to me as k3d runs on top of docker.
Describe the solution you'd like
Auto-configure host.docker.internal to resolve the same as the existing host.k3d.internal.
Describe alternatives you've considered
Change all the references in the code from host.docker.internal to host.k3d.internal and spread the knowledge in the team.
Hi @dsbenghe , thanks for opening this issue! host.docker.internal is still present everywhere where Docker injects it (i.e. in the k3d nodes which are docker containers). host.docker.internal does not exist on every system (e.g. not on Linux) or just doesn't work everywhere (e.g. in WSL2).
That's why we have host.k3d.internal which is different per system and configuration.
I havent looked at the details of how it works in kind. But it works. On an environment consisting of Docker Desktop on Windows (wsl2 or Hyper-V), the host.docker.internal resolves from pods and of course nodes too (while we don't care that much if it solves from the nodes; and like you said the node being docker container it works).
Trying to move from kind to k3d and this is the only thing not simple to solve.
Is your feature request related to a problem or a Pull Request
#101
Scope of your request
In the PR linked above it was discussed the lack of DNS name to access the host services. host.k3d.internal was introduced to point to the IP address host.docker.internal points to.
The introduction of another DNS name in addition to the well-known host.docker.internal makes the code not be that nice as it is explicitly pointing to a k3d specific DNS name. For example, kind as an alternative to k3d, provides automatic resolving of host.docker.internal similar with host.k3d.internal which sounds like a sensible solution to me as k3d runs on top of docker.
Describe the solution you'd like
Auto-configure host.docker.internal to resolve the same as the existing host.k3d.internal.
Describe alternatives you've considered
extra_hosts
orhostAliases
in k3d config #813 - If I understand correctly what this ones wants to achieve.If there is some other reasonable solution I'm happy to try it out.
The text was updated successfully, but these errors were encountered: