-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
breaks on system reboot
#1221
Comments
I am having the same problem. Was working fine up until about a week ago. |
I have also been hit with this issue. Cluster is up on AWS. Builds fine with all pods running. When EC2 instance is rebooted most of the pods enter a crash loop. ubuntu@ip-10-1-1-102:~$ k3d runtime-info ubuntu@ip-10-1-1-102:~$ k3d version ubuntu@ip-10-1-1-102:~$ docker info Server: |
Trying to use Kind instead. |
Has anyone found a workaround for this yet? its a pain starting and stopping the cluster to get this back. Any way we can query the k3d instance to find out what it ought to be? |
Did you happen to find a workaround for this? We're experiencing the same problem, our developers locally have to stop and start the cluster every time they reboot their machines to fix DNS resolution. |
I wrote a powershell function for our developers to run to fix the issue
its not perfect but it works, the important line to figure out what the host.k3d.internal ip should be is
Which I only figured out reading the source and, as its undocumented, is liable to change. but it works for now |
This is also a problem with local registries and it can easily be replicated. Local registries break when used from the cluster after a cluster restart.
|
What did you do
How was the cluster created?
k3d cluster create [clustername] --volume ... --volume ... --registry-config [local path to registry config] --agents 1 --servers 1 --port 8081:8081@loadbalancer --port ... --port ... --port ... --k3s-arg --disable=traefik@server:0 --k3s-arg --disable=metrics-server@server:0
What did you do afterwards?
docker exec -it k3d-relay-agent-0 /bin/sh
wget host.k3d.internal:5000
[refer to
Screenshots or terminal output -> Successful wget
below]docker exec -it k3d-relay-agent-0 /bin/sh
wget host.k3d.internal:5000
[refer to
Screenshots or terminal output -> Unsuccessful wget
below]k3d cluster stop [clustername]
k3d cluster start [clustername]
What did you expect to happen
Expect
host.k3d.internal:5000
to be reachable on machine restartScreenshots or terminal output
If applicable, add screenshots or terminal output (code block) to help explain your problem.
Successful wget
Unsuccessful wget
Which OS & Architecture
k3d runtime-info
Which version of
k3d
k3d version
Which version of docker
docker version
anddocker info
The text was updated successfully, but these errors were encountered: