Skip to content

k3s local access issue #888

Answered by mudler
massimogallina asked this question in Q&A
Feb 14, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Seems kubectl can't get the KUBECONFIG file, from your commands could be that it is out of scope, try with:

export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
sudo -E kubectl get nodes

or better, just run as root:

sudo su -  # become root
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl get nodes

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@massimogallina
Comment options

@mudler
Comment options

Answer selected by massimogallina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants