Questions tagged [k3s]

73 questions
11
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…
5
votes
3 answers

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: tls: failed to verify certificate: x509:…
James
  • 153
4
votes
2 answers

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 to K3S. So far so good, except I wanted to apply…
Jo Colina
  • 171
4
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…
3
votes
1 answer

New node on k3s cluster cannot start pod

We have a local k3s cluster for our staging environment to reproduce something like our production environment. Today, our single node reached its limit, so we decided to add a new node. I bought a new physical server and just installed Ubuntu…
3
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…
2
votes
1 answer

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 up, and both the new and old hostnames are…
slondr
  • 163
2
votes
1 answer

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 Azure VM with Ubuntu 20.04 LTS as the operating…
sardar
  • 21
  • 6
2
votes
1 answer

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 certificate. I'm able to use docker login from…
k.Cyborg
  • 131
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
  • 265
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
  • 265
2
votes
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
  • 265
2
votes
1 answer

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…
2
votes
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
  • 123
  • 5
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
1
2 3 4 5