Skip to main content

Questions tagged [k3s]

K3s is Rancher's lightweight Kubernetes distribution.

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

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 ...
playwithcode's user avatar
0 votes
0 answers
22 views

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 ...
Karol's user avatar
  • 1
1 vote
1 answer
124 views

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

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 ...
Christian Schlichtherle's user avatar
0 votes
0 answers
38 views

"Kubernetes API call failed" when installing fluxcd with k3s on nixos

I get the following error when tryingto install fluxcd. I can run kubectl commands just fine. I am running this on one of the control plane servers as I have installed k3s in HA mode. The error isn't ...
ThatDataGuy's user avatar
0 votes
0 answers
96 views

Running a Redis cluster as a DaemonSet in Kubernetes so each node has all keys

Is it possible to host a Redis Sentinel cluster as a DaemonSet and have each node have all of the keys? And then setup a service that uses internalTrafficPolicy: Local to route pods to their ...
WPP's user avatar
  • 1
0 votes
0 answers
158 views

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). ...
Ostap's user avatar
  • 1
0 votes
1 answer
112 views

Discrepancy between Kubernetes node memory usage reported by kubectl top and summed pod memory usage

I'm facing a discrepancy in memory usage reporting in my Kubernetes cluster, and I'm hoping to gain some insights into what might be causing it. When I run kubectl top pods --all-namespaces, I get the ...
A. Vreeswijk's user avatar
0 votes
0 answers
93 views

The Plain HttP Request sent to Https port for passbolt deployment

I have an issue when deploying passbolt on Kubernetes through helm chart. ( I use rancher for the management UI) Nginx controller in used for k8s ingress and target port is 443 on passbolt service. ...
Mhd Ridho Swasta's user avatar
-1 votes
1 answer
39 views

How to monitor k3s/rancher pods?

The problems I'm facing are these pods crash out of nowhere and I'm unable to debug why it happened. How can I monitor them?
achhainsan's user avatar
0 votes
1 answer
62 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
  • 133
0 votes
2 answers
2k 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
  • 2,591
0 votes
1 answer
95 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
  • 2,591
0 votes
1 answer
660 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
  • 2,591
0 votes
1 answer
533 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
299 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
136 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
624 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
  • 2,591
1 vote
1 answer
11k 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
  • 2,591
0 votes
2 answers
603 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
610 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
0 votes
1 answer
3k 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
  • 2,591
0 votes
1 answer
1k 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
  • 2,591
0 votes
1 answer
585 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
  • 2,591
3 votes
1 answer
3k 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
  • 2,591
-1 votes
1 answer
1k 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
  • 2,591
0 votes
1 answer
345 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
  • 2,591
0 votes
1 answer
549 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
  • 2,591
7 votes
1 answer
7k 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
  • 2,591
0 votes
1 answer
3k 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
  • 2,591
17 votes
2 answers
41k 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
  • 2,591
6 votes
1 answer
13k 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
  • 2,591