k3sup install - connection to localhost:8080 was refused
jh-chng opened this issue · 2 comments
Expected Behaviour
Running the below command should return a list of nodes running in kubernetes.
export KUBECONFIG=/home/ubuntu/kubeconfig kubectl config set-context default kubectl get node -o wide
Current Behaviour
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Steps to Reproduce
- curl -sLS https://get.k3sup.dev | sh
- sudo install k3sup /usr/local/bin/
- cd $HOME
- k3sup install --local --user ubuntu --cluster --k3s-extra-args '--flannel-iface=ens5 --no-deploy traefik --write-kubeconfig-mode --docker'
- export KUBECONFIG=/home/ubuntu/kubeconfig
- kubectl config set-context default
- kubectl get node -o wide
Your Environment
- k3sup version:
Version: 0.12.3
Git Commit: c0a48331967e1c1e6b10dbd997b65c1496fbd32d
- What Kubernetes distribution, client and server version are you using?
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:30:46Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
-
What OS or type or VM are you using for your cluster? Where is it hosted? (for
k3sup install/join
): -
Operating System and version (e.g. Linux, Windows, MacOS):
Linux ip-172-31-23-147 5.15.0-1017-aws #21~20.04.1-Ubuntu SMP Fri Aug 5 11:44:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
"Be part of the solution"
Subject to approval, are you willing to work on a Pull Request for this issue or feature request?
- Yes
- No
Hi
As per the issue template, which you deleted
Support is only for my GitHub sponsors.
Feel free to sign up and we can take it from there.
Alex
Apologies, I did not know I was supposed to leave it in. Will do so to support the development next time.