Hot answers tagged

17 votes
Accepted

error: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denied

No, do not change permissions of /etc/rancher/k3s/k3s.yaml First set up your an environmental variable for KUBECONFIG=~/.kube/config. export KUBECONFIG=~/.kube/config Then let's generate the file at ...
Evan Carroll's user avatar
  • 1,794
6 votes
Accepted

k3s: The connection to the server localhost:8080 was refused - did you specify the right host or port?

This problem is likely caused by a bad ~/.kube/config perhaps you have a file from a different kubernetes install (minikube) or an older k3s. If the server is local you can fix this by running these ...
Evan Carroll's user avatar
  • 1,794
6 votes
Accepted

Where does k3s store it's "/var/lib/kubelet/config.yaml" file?

/etc/rancher/k3s/config.yaml Note, /etc/rancher/k3s/config.yaml not /etc/rancher/k3s/k3s.yaml! You may have to create the file if it doesn't exist. K3s doesn't have a dedicated kubelet service. It's ...
Evan Carroll's user avatar
  • 1,794
2 votes
Accepted

With kubectl, I'm getting Unable to connect to the server: x509: certificate signed by unknown authority

This probably means you've got a dangling ~/.kube/config left over from a prior installation where you followed instructions like these to set up ~/.kube/config and you've since reinstalled k3s and ...
Evan Carroll's user avatar
  • 1,794
2 votes

How do I get k3s to authenticate with Docker Hub?

Update your /etc/rancher/k3s/registries.yaml to configs: registry-1.docker.io: auth: username: evancarroll password: TOKENHIDDEN Restart k3s, sudo systemctl force-reload k3s. You ...
Evan Carroll's user avatar
  • 1,794
1 vote

Distrubuted storage PVC on k3s using OpenEBS is stuck in a pending status while provisioning - waiting on external provisioning, not sure why

If users have a strict firewall setup on their Kubernetes nodes, the provisioning of a PV from a storageclass backed by a cStor storage pool may fail. The pool can be created without any issue and ...
Nonso's user avatar
  • 11
1 vote
Accepted

k3s: Eviction manager: attempting to reclaim" resourceName="ephemeral-storage

This is because of the default settings for the eviction manager (currently 5% hard, and 10% minimum for image reclaim) safeguard a new pod exhausting the space on your hard disk, and the metrics are ...
Evan Carroll's user avatar
  • 1,794

Only top scored, non community-wiki answers of a minimum length are eligible