K3s is Rancher's lightweight Kubernetes distribution.
Questions tagged [k3s]
30 questions
24
votes
2 answers
error: error loading config file "/etc/rancher/k3s/k3s.yaml": open /etc/rancher/k3s/k3s.yaml: permission denied
When I run commands under k3s kubectl, I get
$ k3s kubectl version
WARN[0000] Unable to read /etc/rancher/k3s/k3s.yaml, please start server with --write-kubeconfig-mode to modify kube config permissions
error: error loading config file…
Evan Carroll
- 2,921
- 6
- 37
- 85
7
votes
1 answer
Where does k3s store it's "/var/lib/kubelet/config.yaml" file?
Referencing another answer here, they suggest setting
evictionHard:
imagefs.available: 1%
memory.available: 100Mi
nodefs.available: 1%
nodefs.inodesFree: 1%
In the file /var/lib/kubelet/config.yaml. However, I do not see that file in my k3s…
Evan Carroll
- 2,921
- 6
- 37
- 85
7
votes
1 answer
k3s: The connection to the server localhost:8080 was refused - did you specify the right host or port?
When I run any kubectl commands, I'm getting
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Evan Carroll
- 2,921
- 6
- 37
- 85
3
votes
0 answers
Installing k3s: zsh: not enough directory stack entries
When I install k3s, I'm getting
zsh: not enough directory stack entries.
You can see this at the bottom of the log below,
$ curl -sfL https://get.k3s.io | sh -
# Check for Ready node, takes ~30 seconds
sudo k3s kubectl get node
[sudo] password for…
Evan Carroll
- 2,921
- 6
- 37
- 85
3
votes
1 answer
How do I get k3s to authenticate with Docker Hub?
In jornalctl -u k3s, I see a bunch of errors like this
429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading:…
Evan Carroll
- 2,921
- 6
- 37
- 85
2
votes
0 answers
Ingress losing some settings on restart (k3s)
I'm experimenting with some Kubernetes stuff TrueNAS Scale, which comes with k3s (1.25.3) installed. I installed one of the TrueCharts apps (https://truecharts.org/) but the settings for it appear buggy. I had configured it to use a clusterissuer,…
Thorarin
- 121
- 2
1
vote
1 answer
k3s: Error E0921 failed to connect inside namespace ... connect: connection refused
I've been doing some work with k3s, and everything was working fine. Now I'm getting the following error when I restart and I try to run the port-forward command I had previously run to get to the service I want,
E0921 19:32:10.085091 3083215…
Evan Carroll
- 2,921
- 6
- 37
- 85
1
vote
1 answer
Distrubuted storage PVC on k3s using OpenEBS is stuck in a pending status while provisioning - waiting on external provisioning, not sure why
I'm trying to setup distributed raid 1+0 storage on my k3s cluster running of 5 raspberry pi 4s running armbian (jammy). Currently I'm seeing the event waiting for a volume to be created, either by external provisioner…
Snorghma
- 21
- 3
1
vote
1 answer
With kubectl, I'm getting Unable to connect to the server: x509: certificate signed by unknown authority
When I run something with k3s, like kubectl apply, I'm getting
Unable to connect to the server: x509: certificate signed by unknown authority
Evan Carroll
- 2,921
- 6
- 37
- 85
1
vote
1 answer
port forward ssh from traefik reverse proxy on docker to a k3s container
I'm running a k3s cluster (1 master + 2 workers) and a docker traefik container on the same host (master). The traefik docker container is actually doing the reverse proxy stuff for tls which is working already on ports 80 and 443 for my different…
jimmi4u
- 11
- 2
0
votes
0 answers
Orbstack how to increase max number of pod?
I am running Orbstack v1.10.3 on MacBook (OS v15.3.2). I would like to edit max number of pods but when I edit the node configuration it gets immediately reverted. Currently max pod count is 110.
Node:
kubectl get nodes -o wide
NAME STATUS …
Žilvinas Rudžionis
- 101
- 1
0
votes
0 answers
K3s NVIDIA Device Plugin Not Detecting GPUs: "No devices found" Error
I'm currently working with a K3s cluster and trying to set up GPU support using the NVIDIA device plugin. However, I'm encountering an issue where the plugin logs show:
E1004 13:11:10.866124 1 factory.go:88] If this is a GPU node, did you…
playwithcode
- 31
- 6
0
votes
0 answers
Cannot access the service on k3s
I'm new to Kubernetes and I'm setting up my first project. The application responds with a hello world message on the '/' route. Here is my deployment file:
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app-deployment
labels:
app:…
Karol
- 1
- 1
0
votes
1 answer
How to setup a K3s cluster on netbird or tailscale?
My company is running an IoT project with a distributed K3s cluster running on OpenVPN. Some K3s nodes are installed at customer premises, usually in a SOHO LAN with NAT, some are running in the cloud (currently AWS). Therefore, all K3s nodes have…
Christian Schlichtherle
- 101
- 3
0
votes
0 answers
Kubernetes (K3S) Masters on cloud and workers behind NAT
I have a working HA distributed hybrid Kubernetes (K3S) cluster with three masters running on VPS nodes.
They have public IPs and no private network (nodes spread across regions and cloud providers).
Now I want to add several agent nodes (workers)…
Ostap
- 1