Questions tagged [k3s]

K3s is Rancher's lightweight Kubernetes distribution.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Add K3s agent to server in a docker container (using Tailscale userspace networking)

I have a K3s server running somewhere, connected to Tailscale. I am able to connect regular VM agents to it via Tailscale under normal circumstances. However, I also need to add an agent "node&...
Paul Roever's user avatar
0 votes
1 answer
13 views

Redefine deployment (Portainer) pvc after node failure

I have a home lab running k3s. NAME STATUS ROLES AGE VERSION k8s-node-001 Ready control-plane,master,worker 302d v1.27.6+k3s1 k8s-node-002 Ready worker ...
JoSSte's user avatar
  • 135
0 votes
1 answer
380 views

Can the K3s installed Traefik be updated independently through helm?

If k3s installs traefik and flags it as a helm chart, can it be updated through helm? When I run the commands below, helm repo add traefik https://traefik.github.io/charts helm repo update helm ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
40 views

New install of helm shows traefik and traefik-crd, but why?

When I run helm ls -A on a new install of Helm, I see, $ helm ls -A NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
102 views

Config not found in /home/$USER/.kube/config

When I run k3s kubectl version $ k3s kubectl version W0730 19:46:32.066086 17273 loader.go:222] Config not found: /home/ecarroll/.kube/config [...] The connection to the server localhost:8080 was ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
266 views

Unable to pull image from a private Docker registry with Let's Encrypt certificate in Kubernetes

I have set up a private Docker registry on my Kubernetes cluster (k3s) running on a Raspberry Pi 4. I have secured the registry with a Let's Encrypt certificate, and I can confirm that the certificate ...
Snorghma's user avatar
1 vote
1 answer
122 views

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 ...
Snorghma's user avatar
2 votes
0 answers
101 views

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 ...
Thorarin's user avatar
  • 121
3 votes
0 answers
355 views

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 ...
Evan Carroll's user avatar
  • 1,794
0 votes
0 answers
607 views

K3s pull images from Docker Pro private repository

I'm attempting to use containers published to a private Docker Pro registry with K3s. I've configured /etc/rancher/k3s/registries.yaml mirrors: docker.io: endpoint: - "...
Gary's user avatar
  • 1
0 votes
1 answer
6k views

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's user avatar
  • 1,794
0 votes
2 answers
331 views

Persistent Volume with Kubernetes

I have an application which consists of 2 containers which are running on an on-premise system. The responsibility of the application is to accept data from other on-premise systems and upload it to ...
No Name's user avatar
0 votes
1 answer
398 views

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 ...
jimmi4u's user avatar
1 vote
0 answers
169 views

Can't access default k3s metrics server from Prometheus-Adapter

I have installed Prometheus-adapter along with the default metrics-server that comes with k3s securely on port 4443. Unfortunately, I get no resources when I query custom.metrics.k8s.io $ kubectl get ...
realsarm's user avatar
  • 111
0 votes
1 answer
2k views

Newly installed k3s cluster on fresh OS install can not resolve external domains or connect to external resources?

I'm following the k3s tutorial for troubleshooting DNS, after step 2 "Add KUBECONFIG for user.", if run this command, kubectl run -it --rm --restart=Never busybox --image=busybox:1.28 -- ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
771 views

Does /etc/rancher/k3s/registries.yaml affect `k3s ctr` and `k3s crictl`?

k3s ctr launches the contianerd CLI, and k3s crictl is the CRI cli. I'm told you configure k3s authentication to the image registries using /etc/rancher/k3s/registries.yaml. Does this yaml file ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
261 views

How can you validate that registries.yaml is set properly?

I've set up my /etc/rancher/k3s/registries.yaml, how can I confirm it works without doing k3s kubectl run c1 --image docker.io/perl:5.30 k3s kubectl logs --follow=true c1 sleep 1 k3s kubectl delete ...
Evan Carroll's user avatar
  • 1,794
2 votes
1 answer
2k views

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 ...
Evan Carroll's user avatar
  • 1,794
-1 votes
1 answer
895 views

How can I get an installation of k3s working with KubeApps? [closed]

How can I get an install of KubeApps running on K3s? What are the minimal required steps?
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
249 views

KubeApps: Invalid GetAvailablePackageSummaries response from the plugin helm.packages: ... Unable to fetch chart categories

I followed the setup instructions for k3s, and kubectl in this answer. I'm getting this error when I boot into KubeApps An error occurred while fetching the catalog: Invalid ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
346 views

Where can I find the default arguments supplied to the internal Kublet Service in k3s?

If I want to find the default-arguments to the internal Kublet service, where can I find these documented?
Evan Carroll's user avatar
  • 1,794
6 votes
1 answer
4k views

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/...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
2k views

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

When I run kubectl get pods -w --namespace kubeapps I see all my pods are pending NAME READY STATUS RESTARTS AGE kubeapps-internal-...
Evan Carroll's user avatar
  • 1,794
11 votes
1 answer
24k views

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 ...
Evan Carroll's user avatar
  • 1,794
4 votes
1 answer
9k views

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's user avatar
  • 1,794