You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created cluster with servicelb and traefik disabled. The generated kubeconfig would not connect to the cluster without modification.
How was the cluster created? k3d create cluster --k3s-server-arg "--disable=servicelb" --k3s-server-arg "--disable=traefik" --update-kubeconfig --no-lb --network=host
What did you do afterwards?
ubuntu@k3d:~$ k3d get cluster
NAME MASTERS WORKERS
k3s-default 1 0
ubuntu@k3d:~$ k3d get node
NAME ROLE CLUSTER
k3d-k3s-default-master-0 master k3s-default
ubuntu@k3d:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8200fb61dc90 rancher/k3s:v1.18.3-k3s1 "/bin/k3s server --d…" 3 minutes ago Up 3 minutes k3d-k3s-default-master-0
ubuntu@k3d:~$ kubectl get node
The connection to the server 0.0.0.0:45557 was refused - did you specify the right host or port?
What did you expect to happen?
Kubectl to connect to cluster. It was fixed by changing the port in kubeconfig to 6443. (See below)
Hi @jarrett-ccg , thanks for opening this issue!
You're absolutely right, the random port-choosing that's behind this issue has no effect in hostNetwork mode. This is "fixed" now. Please note, that still you can only create one cluster in hostNetwork mode, since we're not changing the backend port on the container.
What did you do?
Created cluster with servicelb and traefik disabled. The generated kubeconfig would not connect to the cluster without modification.
How was the cluster created?
k3d create cluster --k3s-server-arg "--disable=servicelb" --k3s-server-arg "--disable=traefik" --update-kubeconfig --no-lb --network=host
What did you do afterwards?
What did you expect to happen?
Kubectl to connect to cluster. It was fixed by changing the port in kubeconfig to 6443. (See below)
Screenshots or terminal output
Which OS & Architecture?
Ubuntu 18.04.4 amd64
Which version of
k3d
?Which version of docker?
The text was updated successfully, but these errors were encountered: