Skip to content
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