Open NatureLR opened 5 months ago
I have the same issue with 5.7.2 ➜ ~ k3d --version k3d version v5.7.2 k3s version v1.29.6-k3s2 (default)
➜ ~ k3d node create agent-node --role agent --token $K3S_TOKEN --cluster https://192.168.178.105:6443 --network k3d-network --trace DEBU[0000] DOCKER_SOCK=/var/run/docker.sock DEBU[0000] Runtime Info: &{Name:docker Endpoint:/var/run/docker.sock Version:27.0.3 OSType:linux OS:Debian GNU/Linux 12 (bookworm) Arch:x86_64 CgroupVersion:2 CgroupDriver:systemd Filesystem:extfs InfoName:minipc} INFO[0000] Adding 1 node(s) to the remote cluster 'https://192.168.178.105:6443'... TRAC[0000] Creating node from spec &{Name:k3d-agent-node-0 Role:agent Image:docker.io/rancher/k3s:v1.29.6-k3s2 Volumes:[] Env:[K3S_URL=https://192.168.178.105:6443 K3S_TOKEN=mysecrettoken] Cmd:[] Args:[] Files:[] Ports:map[] Restart:true Created: HostPidMode:false RuntimeLabels:map[app:k3d k3d.cluster:https://192.168.178.105:6443 k3d.cluster.external:true k3d.cluster.token:mysecrettoken k3d.cluster.url:https://192.168.178.105:6443 k3d.role:agent k3d.version:v5.7.2] RuntimeUlimits:[] K3sNodeLabels:map[] Networks:[k3d-network] ExtraHosts:[] ServerOpts:{IsInit:false KubeAPI:
} AgentOpts:{} GPURequest: Memory: State:{Running:false Status: Started:} IP:{IP:invalid IP Static:false} HookActions:[] K3dEntrypoint:false} DEBU[0000] DOCKER_SOCK=/var/run/docker.sock DEBU[0000] [autofix cgroupsv2] cgroupVersion: 2 TRAC[0000] Creating docker container with translated config &{ContainerConfig:{Hostname:k3d-agent-node-0 Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[K3S_URL=https://192.168.178.105:6443 K3S_TOKEN=mysecrettoken K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml] Cmd:[agent] Healthcheck: ArgsEscaped:false Image:docker.io/rancher/k3s:v1.29.6-k3s2 Volumes:map[] WorkingDir: Entrypoint:[/bin/k3d-entrypoint.sh] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[app:k3d k3d.cluster:https://192.168.178.105:6443 k3d.cluster.external:true k3d.cluster.token:mysecrettoken k3d.cluster.url:https://192.168.178.105:6443 k3d.role:agent k3d.version:v5.7.2] StopSignal: StopTimeout: Shell:[]} HostConfig:{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name:unless-stopped MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:true PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/run: /var/run:] UTSMode: UsernsMode:host ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness: OomKillDisable: PidsLimit: Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] MaskedPaths:[] ReadonlyPaths:[] Init:0xc0002e096f} NetworkingConfig:{EndpointsConfig:map[k3d-network:0xc0001808c0]}} DEBU[0000] Created container k3d-agent-node-0 (ID: 2bffb9bd34d963678ff4495366b3d32993ca7f6d6ff15941d6fad0a54b2fb967) DEBU[0000] >>> enabling dns magic FATA[0000] failed to add 1 node(s) to the remote cluster 'https://192.168.178.105:6443': failed to add one or more nodes: failed to run node 'k3d-agent-node-0': failed to start node 'k3d-agent-node-0': failed to enable k3d fixes: Cannot enable DNS fix, as Host Gateway IP is missing!
What did you do
How was the cluster created?
Screenshots or terminal output
Which OS & Architecture
Which version of
k3d
Which version of docker