-
-
Notifications
You must be signed in to change notification settings - Fork 467
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] host.k3d.internal not injected #926
Comments
Hi @jeusdi , thanks for opening this issue! |
@iwilltry42 I have the same problem, and also in my case the config map does not have the host.k3d.internal injected, I have only
my cluster is running (re-created yesterday), I did restart the laptop, what can I do to troubleshoot this? Should I recreate the cluster (creation is always successful) and how can I get creation logs? |
I recreated the cluster, and then the coredns host entry is there. It seems that the host entry "disappears" upon reboot of the host machine - can it be re-injected upon reboot as well?
|
This is definitely an issue - upon restart of the machine the host.k3d.internal is gone. The workaround is to define the subnet upon cluster creation, e.g. |
AFAICT - reproducing this is as easy as In other words, after stopping/starting the k3d cluster, none of the host aliases defined in the original k3d config get injected. They only get injected upon starting the cluster the first time during |
Host entries to the CoreDNS config are now managed via the coredns-custom configmap as per #1453 so they survive restarts of the cluster and host system. This is released in https://github.com/k3d-io/k3d/releases/tag/v5.7.0 |
Incase anyone comes across this thread thinking the problem has been resolved, the merge above was backed out in 5.7.1 so this issue remains. It is also being tracked on #1221 . |
What did you do
I've set a cluster up using this config file:
command:
k3d cluster create --config k3d-config.yaml
I'm getting this event when I'm trying to deploy my application:
Formatted warning failed event:
Last one says:
After that, I've took a look on coredns configmap:
As you can see,
host.k3d.internal
doesn't exist.What did you expect to happen
host.k3d.internal
can be reached.Which OS & Architecture
Which version of
k3d
k3d version v5.2.2
k3s version v1.21.7-k3s1 (default)
Which version of docker
docker version:
docker info:
The text was updated successfully, but these errors were encountered: