Skip to main content

Questions tagged [k3s]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
75 views

Deduplicating nodes listed in `kubectl top nodes`

I've set up a new kubernetes cluster using k3s. When I run kubectl top nodes there are 6 listed even though the cluster only has 4 nodes. Some of the hosts have changed hostnames since first being set ...
slondr's user avatar
  • 163
0 votes
0 answers
74 views

How to configure k3s with ingress-nginx to correctly forward user IP in X-Real-IP header?

I am trying to configure k3s with ingress-nginx on some VPS from Hetzner. I have set up a server with a public IP and others without public IPs, all connected in a private network. When I install ...
Dorin's user avatar
  • 101
0 votes
1 answer
126 views

Fluent-bit bitnami helm chart - kubernetes filter does not work

I am trying to run fluent-bit using bitnami helm chart and I want to use kubernetes filter. It does collect the logs but the kubernetes filter does not add any information(pod id, pod name etc). When ...
Szynkie's user avatar
0 votes
1 answer
121 views

How to create Persistent Volume Claim in Kubernetes with Ansible?

I am trying to install Unifi on a Kubernetes cluster server (K3S) using Ansible and ran into troubles when trying to define a persistent volume claim. I am using Kubernetes.Core module and I have ...
Lasse Michael Mølgaard's user avatar
0 votes
1 answer
107 views

How to setup external load balancing to my kubernetes cluster securely?

We have for a period of time just pointed our dns to one of the nodes in our cluster. That node has then load balanced internally to the correct node and application. Something like this: The problem ...
Viktor Eriksson's user avatar
0 votes
0 answers
53 views

cannot create subdomain because dns client is nil

when I deploy from docker registry app (abdomamdouh/kiada:0.1) to k3s cluster using porter.run text, I get this error my porter config cluster: 4 driver: local helmrepo: "0" host: http://...
Abdelrahman Mamdouh 's user avatar
-1 votes
1 answer
168 views

Kubernetes: Cannot access resources in cert-manager namespace from default namespace

I am trying to learn how Kubernetes works, so I have made my own K3S cluster using the quickstart guide. Then I installed Cert Manager using the guide for Helm. I want to use Let's Encrypt ...
Lasse Michael Mølgaard's user avatar
1 vote
2 answers
213 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
1 vote
1 answer
112 views

Issues Adding Non-Hetzner Provider Nodes to Rancher Cluster: Stuck at "Waiting for agent to check in and apply initial plan"

I have successfully deployed a Rancher server on one out of five servers obtained from Hetzner. For the cluster configuration, I designated one of the remaining servers for the control plane and etcd ...
humanbeing's user avatar
2 votes
2 answers
600 views

K3S: understanding the network model and applying TLS certificates

In order to learn a bit more about K8S I started running a single server/node K3S cluster as a home lab. But I believe I've reached an impasse on my understanding of the network model, maybe specific ...
Jo Colina's user avatar
  • 133
0 votes
0 answers
191 views

NodePort not accessible on all nodes in a k3s cluster

I've got a 3 node k3s cluster, installed using the following commands on fresh Ubuntu server 22.04 installs: # first server curl -sfL https://get.k3s.io | sh -s - server --cluster-init # other two ...
jamzsabb's user avatar
  • 121
1 vote
1 answer
381 views

What does "FailedMount: no Pending workload pods for volume" mean?

In a k3s cluster (with multiple control-plane nodes) and with Rancher Longhorn installed, I am observing the following warning for pods that have a pvc with the default longhorn storage class (output ...
CodeFox's user avatar
  • 375
2 votes
1 answer
656 views

The pod's /etc/resolv.conf does not reflect the changes on the host

When my pod's dnsPolicy is set to Default it picks up the DNS servers from the host's /run/systemd/resolve/resolv.conf (as configured by the resolvConf flag in Kubernetes) and stores them in /etc/...
Sam's user avatar
  • 121
2 votes
1 answer
1k views

How to add a domain to k3s certificate

When trying to access a k3s Kubernetes cluster that's running on another machine, I get the following error message: E0204 19:13:27.185678 8066 proxy_server.go:147] Error while proxying request: ...
James's user avatar
  • 121
0 votes
1 answer
67 views

Changes done in mysql backend database not getting reflected neither on frontend website nor inside the server [closed]

https://stackoverflow.com/questions/45920596/update-made-in-mysql-database-does-not-reflect-on-the-webpage I've curled inside the server itself and still the updated data was not received. I've: ...
achhainsan's user avatar
0 votes
0 answers
170 views

404 page not found rancher and k3s, how to resolve?

Step 1 Download k3s curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.26.11+k3s1 sh -s - server --write-kubeconfig-mode 666 Step 2 Install cert manager. kubectl apply -f https://github.com/cert-...
achhainsan's user avatar
0 votes
1 answer
388 views

Load Balancer is not accessible outside cluster

I have setup 3 master and 6 worker nodes using the same IP segment, 172.26.10.XX. For load balancer services, I'm using Kube-Vip for load balancer with configuration namespace specifics as below: - ...
amundead's user avatar
0 votes
0 answers
159 views

Add server node to existing k3s cluster using kubevip

I have a k3s cluster consiting of one server node and three worker nodes, currently running. I would like to add a new server node to ensure HA if the server nodes goes down. I am using ksup and ...
user2236794's user avatar
0 votes
0 answers
316 views

server network fails when starting k3s server

We have a k3s cluster in our staging environment with one master and two agents. Recently, I noticed that the master node was using high resources. I was also unable to SSH to the server from our ...
mmnsh's user avatar
  • 1
1 vote
1 answer
438 views

Can't connect to UDP service running in k3s and exposed via nodePort

I am trying to expose a UDP service (tftp) through a k3s nodePort but can't seem to connect. The TCP service work fine, but the UDP service doesn't seem to be exposed. The deployment lists the ports: ....
Mark Grimes's user avatar
1 vote
0 answers
139 views

truenas NFS on kubernetes

I am using the following link to setup my k3s setup with Truenas. I am only interested in NFS. I will not be doing ISCSI. After I applied the "helm upgrade --install --create-namespace --values ...
user2236794's user avatar
0 votes
0 answers
669 views

Why are my DNS query responses from Technitium failing to make it back to my kubernetes container?

I've explored every nook and cranny I can imagine, and I can't figure out what's going wrong. I've got a k3s setup on my server where I'm hosting technitium in hostNetwork mode. Technitium is ...
Cabbage's user avatar
0 votes
1 answer
782 views

k3s fails to parse registries.yaml

I have set up a k3s Kubernetes standalone server with a insecure private registry but k3s fails to pull images from it. The registries.yaml file is set as documentation says. It is below. mirrors: &...
lauksas's user avatar
  • 101
0 votes
0 answers
292 views

OpenVPN Server on K3s Kubernetes Cluster: No Internet Access

I've set up an OpenVPN server on a K3s Kubernetes cluster. While I can successfully deploy the OpenVPN server pod and connect from a client machine, the client doesn't have internet access through the ...
Fred Luetkemeier's user avatar
0 votes
0 answers
320 views

Can't access Rancher UI after deploying it on K3S via helm

I deployed Rancher on K3S cluster using steps documented in below guide: https://ranchermanager.docs.rancher.com/getting-started/quick-start-guides/deploy-rancher-manager/helm-cli The pod is working ...
mwas01's user avatar
  • 1
0 votes
0 answers
113 views

K3s - Two pods in the same CIDR subnet doing SNAT in a cluster

We have a multi master k3s cluster with etcd. We have launched 2 pods in deployment and both get the IPs from the same CIDR i.e., 10.244.0.xx. cni0 interface ip is 10.244.1.1 on node 1 and 10.244.0.1 ...
syedtoah's user avatar
0 votes
0 answers
81 views

How to run K3s control plane node on AWS and worker nodes on Edge prenmises

I would like to know if there is any documentation on how to set up the following k3 cluster architecture Control plane in the AWS Worker nodes on edges premises Moreover, there is another scenario ...
florins's user avatar
  • 101
0 votes
0 answers
18 views

How to use single signon of nodejs app using kubernetes deployment?

I have tried setting up single signon on a sample node.js app with express and Microsoft authentication. This is the steps and source code link When I run locally, it is working. When I kept in ...
sardar's user avatar
  • 11
0 votes
1 answer
485 views

metallb ip address is not accessible when trying to connect from host machine, how to fix that?

I have installed k3s on ubuntu 23 machine, which is installed on virtualbox and with bridged network set. My windows 10 host machine ip address Wireless LAN adapter Wi-Fi: Connection-specific DNS ...
sardar's user avatar
  • 11
1 vote
1 answer
520 views

How to access k3s cluster created in an azure vm with public and private ip?

I tried below steps to setup k3s cluster. Here are the steps to create a K3s cluster on an Azure VM with both private and public IP addresses, and access it from your laptop using kubectl: Create an ...
sardar's user avatar
  • 11
0 votes
0 answers
230 views

RabbitMQ CPU Usage Spikes

I've installed RabbitMQ on kubernetes(k3s) on ARM (Oracle OCI Ampere A1) using the community docker image. I'm seeing very regular periodic CPU usage spikes (two series of spikes, both with a period ...
Chintalagiri Shashank's user avatar
0 votes
0 answers
642 views

k3s kubectl logs times out after 50 seconds

TLDR: Depending on my k3s version, kubectl logs -f drops back to the console (timeouts?) exactly after 50 seconds without new log entries, instead of remaining attached until a Ctrl-C is issued. I can'...
Jorge Yanes Diez's user avatar
0 votes
3 answers
2k views

Docker DIND cannot apt-get update but curl works

I've deployed docker-dind on my homelab k3s cluster. And try to build docker images there. However I am getting error while performing apt-get update command. But running curl command on the same ...
XPLOT1ON's user avatar
  • 107
1 vote
1 answer
623 views

Ansible shell module fails to find kubectl

Running the command from the CLI on the server works perfect, but from playbook using Ansible shell module fails with: fatal: [localhost]: FAILED! => {"changed": true, "msg": &...
BrillCom's user avatar
  • 149
1 vote
1 answer
4k views

k3s fail to start as daemoan but works when running manually from command line

I am trying to install k3s on a redhat operating system, on an EC2 instance (t3.xlarge) OS version: $ cat /etc/*release NAME="Red Hat Enterprise Linux" VERSION="8.6 (Ootpa)" I ...
justadev's user avatar
  • 493
0 votes
1 answer
5k views

Kubernetes k3s master node fails to ready with FailedCreatePodSandBox errors

I'm trying to setup a small 4 worker node cluster atm and I just installed k3s on my raspberry pi 4s (8gb) and I'm getting a NotReady status. I'm new to kubernettes/k3s, but I believe with a totally ...
neogeek23's user avatar
  • 101
1 vote
2 answers
1k views

which K3S ports should (not) be exposed on a public interface

The K3S documentation explains which ports are required for this kubernetes distribution to work. What it does NOT explain is, which of these ports are OK to be open on a public interface. K3S seem to ...
tcurdt's user avatar
  • 413
0 votes
1 answer
1k views

How do I configure Wireguard for a K8s multi-site?

I tried to configure Wireguard for a K3s multi-site cluster, my issue is with routing. There are at least 4 nodes, 2 in one location + 1 in other location and + 1 in other location. Assumptions: 10....
Krzysztofa Krzysztof's user avatar
0 votes
1 answer
1k views

Aggregate multiple log files in a directory

I have k3s single node cluster running on a machine. I do not have any logging infrastructure set up yet and I'd leave this as a future learning experience for now. On that k3s I run some cron jobs ...
Paperclip's user avatar
  • 166
2 votes
1 answer
11k views

Getting 401 Unauthorized while trying to pull images from local docker registry (harbor) from k3s

Due to work I need to self-host a local docker proxy cache using Harbor. So i wen to their doc and I installed the server and configured it properly, accesing it via FQDN and using a self-signed ...
k.Cyborg's user avatar
  • 131
1 vote
1 answer
1k views

Pgadmin4 cannot start in Kubernetes

I have set up Postgres in Kubernetes (k3s administered with Rancher) which seems to be working fine but in order to take a look at the databases I tried to add a pgadmin4 pod. I first tried adding the ...
Taxel's user avatar
  • 111
0 votes
1 answer
3k views

how do you check load balancer method "algorithm" for a nginx ingress controller?

I do have an ingress controller load balancer in my Kubernetes Cluster, how do I know if my load balancer run which algorithm? and what happens if my load balancer is not working or the algorithm is ...
newcomers's user avatar
0 votes
1 answer
542 views

Deploying k3os through a single image across all nodes with a shared token

I'm trying to get a k3os cluster running on a set of Raspberry Pi nodes using https://github.com/sgielen/picl-k3os-image-generator. I'm successfully generating images and I am able to boot from them. ...
MikeBaz - MSFT's user avatar
0 votes
0 answers
1k views

I Could not ping or curl master node flannel interface

I have 3 nodes in the cluster, one is the master node and two are the worker nodes. I use CNI flannel for the Kubernetes cluster. I run an Nginx ingress in my cluster for the load balancer and the ...
newcomers's user avatar
3 votes
1 answer
2k views

Forward real requestor IP in K3S NGINX ingress

I've set up a K3S Kubernetes Environment in my private Home-Lab on Raspberry PIs in order to teach myself some Kubernetes (Noob-Alert), using NGINX as Ingress Controller and I'm kind of stuck at ...
Brolantor's user avatar
0 votes
1 answer
87 views

What all dependency in the get.k3s.io script need to be edited to download k3s locally

Currently I am using command curl -sfL https://get.k3s.io to download k3s. The script get.k3s.io is using below third party internet calls to URLs : GITHUB_URL=https://github.com/k3s-io/k3s/releases ...
Thor's user avatar
  • 101
0 votes
0 answers
1k views

access my website (Nginx) Through another machine from local network

I work on K3S kuberentes cluster on ubuntu. Local IP address 192.168.111.2 public IP address : 192.168.20.90 ip loadbalancer : 192.168.111.100 I build an Nginx with the k3sdomain.com domain on my K3S ...
newcomers's user avatar
1 vote
1 answer
4k views

Kubernetes pods can ping external IPs but not any domain

I have a Kubernetes cluster using the Antrea CNI. The problem is that I can't curl any domain names. I can do nslookup inside the pod and get the IP of any domain, but I can't directly curl the domain....
tymur999's user avatar
  • 517
1 vote
1 answer
4k views

Kubernetes failing to start: failed to build map of initial containers

Starting today, k3s is failing to start with the following error: "Failed to start ContainerManager" err="failed to build map of initial containers from runtime: no PodsandBox found ...
GoldElysium's user avatar
1 vote
1 answer
3k views

K3S can't pull public docker hub images

K3S cluster is failling to pull public docker hub images. in this instance i will user linuxserver/webtop which presents the error Failed to pull image "linuxserver/webtop": rpc error: code =...
locose's user avatar
  • 11