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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
k3s × 25kubernetes × 8
docker × 5
traefik × 4
kubectl × 3
kubelet × 3
configuration × 2
docker-registry × 2
rancher × 2
authentication × 2
kubeapps × 2
helm × 1
prometheus × 1
dns × 1
metrics × 1
dockerhub × 1
storage × 1
high-availability × 1
distributed-systems × 1
persistent-volumes × 1
cert-manager × 1
tls × 1
containerd × 1