k3d icon indicating copy to clipboard operation
k3d copied to clipboard

[QUESTION/HELP] Cannot enable DNS fix, as Host Gateway IP is missing

Open rgruyters opened this issue 9 months ago • 11 comments

Question / Where do you need Help?

I'm trying to create a new cluster with k3d cluster create --network host --wait --no-lb but I hit the following error message:

INFO[0000] [SimpleConfig] Hostnetwork selected - disabling injection of docker host into the cluster, server load balancer and setting the api port to the k3s default
INFO[0000] [ClusterConfig] Hostnetwork selected - disabling injection of docker host into the cluster, server load balancer and setting the api port to the k3s default
INFO[0000] Prep: Network
INFO[0000] Re-using existing network 'host' (1e719cb249ce6493d48c821b55507e3935eb3f12c74e4cfc84a91dc7a52be838)
INFO[0000] Created image volume k3d-k3s-default-images
INFO[0000] Starting new tools node...
INFO[0000] Starting node 'k3d-k3s-default-tools'
INFO[0001] Creating node 'k3d-k3s-default-server-0'
INFO[0001] Using the k3d-tools node to gather environment information
INFO[0001] Starting cluster 'k3s-default'
INFO[0001] Starting servers...
ERRO[0001] Failed Cluster Start: Failed to start server k3d-k3s-default-server-0: failed to enable k3d fixes: Cannot enable DNS fix, as Host Gateway IP is missing!
ERRO[0001] Failed to create cluster >>> Rolling Back
INFO[0001] Deleting cluster 'k3s-default'
INFO[0001] Deleting 1 attached volumes...
FATA[0001] Cluster creation FAILED, all changes have been rolled back!

Scope of your Question

k3d/k3s versions:

k3d version v5.6.3
k3s version v1.28.8-k3s1 (default)

Docker:

Client: Docker Engine - Community
 Version:           26.1.1
 API version:       1.45
 Go version:        go1.21.9
 Git commit:        4cf5afa
 Built:             Tue Apr 30 11:47:53 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          26.1.1
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.9
  Git commit:       ac2de55
  Built:            Tue Apr 30 11:47:53 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.31
  GitCommit:        e377cd56a71523140ca6ae87e30244719194a521
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

rgruyters avatar May 08 '24 15:05 rgruyters