Questions tagged [k3s]

39 questions
6
votes
3 answers

Can I run a single-node K3S cluster?

I am aware of the consequences and issues with running a single-node cluster. However, I'm still curious if it's possible. I plan on setting everything up myself. In other words, can I run the control plane and a worker node on the same physical…
3
votes
1 answer

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 passing the real IP of requests to the target Pods, in…
Brolantor
  • 31
  • 2
2
votes
3 answers

How to delete all namespaces except the kube-system in K3s cluster

I have a K3s cluster with system pods (i.e. kube-system namespace) and my application pods: kube-system pod/calico-node-xxxx kube-system pod/calico-kube-controllers-xxxxxx kube-system …
solveit
  • 255
  • 2
  • 11
2
votes
1 answer

How can I restart or reset the K3s cluster pods

I have a k3s (v1.21.1+k3s1) cluster with following pods: kube-system pod/calico-node-xxxx kube-system pod/calico-kube-controllers-xxxxxx kube-system pod/metrics-server-xxxxx kube-system …
solveit
  • 255
  • 2
  • 11
2
votes
0 answers

k3s without HA: how to switch master node?

Rancher documentation on k3s is quite nice and its HA support (both with external DB or embedded etcd) look nice, but I don't want/need an HA setup. In case my master node fails, I don't mind having downtime while I re-create it or make a master out…
Filipe Pina
  • 113
  • 8
2
votes
1 answer

In k3s, how can I promote a worker node to a master node?

I currently have a Raspberry Pi-based Kubernetes cluster based on k3s which, while originally a single-master cluster, has now grown to the point at which it is practical to have multiple (odd-number) master nodes. My question is - with regard to…
Cerebrate
  • 174
  • 3
  • 13
1
vote
0 answers

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 deal with the following ports Master 6443/tcp…
tcurdt
  • 363
  • 3
  • 9
1
vote
1 answer

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 image dpage/pgadmin4 without any additional…
Taxel
  • 111
  • 2
1
vote
1 answer

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. For example, I can't curl https://google.com…
tymur999
  • 465
  • 1
  • 3
  • 8
1
vote
1 answer

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 with Id…
1
vote
1 answer

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 = Unknown desc = failed to pull and unpack image…
locose
  • 11
  • 2
1
vote
2 answers

How can I delete manually calicoctl and iptables created by calico from my k3s setup

I have a K3s setup with calico pods [calico-node- & calico-kube-controllers-] running. On uninstalling K3s, calico pods get deleted but I see that calicoctl and iptables -S commands still running and shows data. I want to delete calico (including…
solveit
  • 255
  • 2
  • 11
1
vote
0 answers

k3s - select ingress nodes with default traefik

I have a k3s cluster with 1 master + 2 nodes default traefik as ingress Traefik is running on the master node. Is there a way to label nodes / change manifest so that traefik runs on the nodes instead of the master? Is there a reason for default…
ProfHase85
  • 451
  • 3
  • 6
  • 13
1
vote
1 answer

Schedule pod on a node and access pv on another node

I'm running a k3s cluster on RPi4, with heterogenous config (a node has a high capacity but slow hdd, another has a ssd drive, a third only has a sd card). I have persistent volumes & claims of kind "local-path", attached to nodes & pods depending…
spi
  • 113
  • 4
1
vote
1 answer

K3s - dial tcp 10.43.0.1:443: connect: connection refused

I created a K3s multi-master embedded cluster like this: hostname: k3s01 curl -sfL https://get.k3s.io | K3S_TOKEN=xxx INSTALL_K3S_EXEC="server --disable servicelb --disable traefik --bind-address=10.0.0.4 --tls-san 10.0.0.4…
Berndinox
  • 240
  • 1
  • 3
  • 11
1
2 3