Skip to content
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] Unable to add node to remote cluster due to DNS issue #1483

Open
jettdc opened this issue Aug 8, 2024 · 0 comments
Open

[BUG] Unable to add node to remote cluster due to DNS issue #1483

jettdc opened this issue Aug 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jettdc
Copy link

jettdc commented Aug 8, 2024

What did you do

  • How was the cluster created?

    • cluster is a remote cluster that I want to add a k3d agent to
  • What did you do afterwards?

k3d node create test-agent \                                                                                                         ─╯
  --role agent \
  --token <MYTOKEN>  \
  --cluster https://<MY EC2 IP>:6443 \
  --k3s-arg "--tls-san=<MY EC2 IP>" \

What did you expect to happen

I expected to add a local agent to my remote cluster, but instead got a strange DNS error. This may be related to the fact that I have a custom CA that needs to be added to the container, but there's no option to mount a volume when using this command. I tried using --image with the following configuration, to no avail (same error):

FROM rancher/k3d:latest

COPY my-ca-bundle.crt /etc/ssl/certs/my-ca-bundle.crt

Screenshots or terminal output

INFO[0000] Adding 1 node(s) to the remote cluster 'https://<MY EC2 IP>:6443'... 
FATA[0000] failed to add 1 node(s) to the remote cluster 'https://<MY EC2 IP>:6443': failed to add one or more nodes: failed to run node 'k3d-test-agent-0': failed to start node 'k3d-test-agent-0': failed to enable k3d fixes: Cannot enable DNS fix, as Host Gateway IP is missing! 

Which OS & Architecture

arch: aarch64
cgroupdriver: cgroupfs
cgroupversion: "2"
endpoint: /var/run/docker.sock
filesystem: extfs
infoname: docker-desktop
name: docker
os: Docker Desktop
ostype: linux
version: 27.1.1

Which version of k3d

k3d version v5.7.3
k3s version v1.30.3-k3s1 (default)

Which version of docker

Client:
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
 Git commit:        6312585
 Built:             Tue Jul 23 19:54:12 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.33.0 (160616)
 Engine:
  Version:          27.1.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.12
  Git commit:       cc13f95
  Built:            Tue Jul 23 19:57:14 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.7.19
  GitCommit:        2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc:
  Version:          1.7.19
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
@jettdc jettdc added the bug Something isn't working label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant