k3s
- No debian package/repo so far
- AUR packages available
Requirements
Minimal K3S requirements:
| Server / Control plane | Agent / Node | |
|---|---|---|
| Disk space | 15 GB | 15 GB |
| RAM | 2 GB | 512 MB |
| CPU | 2 cores | 1 core |
Installation
curl2bash
curl -sfL https://get.k3s.io | sh -
sudo k3s kubectl get node
/usr/local/bin/k3s-uninstall.sh
Usage
Use k3s crictl cmd:
k3s crictl images
Manually prune unused images:
k3s crictl rmi --prune
Resource usage
- K3s Resource Profiling
- Profiling Lightweight Container Platforms:MicroK8s and K3s in Comparison to Kubernetes
- CPU and memory usage of k3s
k3s components
networking
https://rancher.com/docs/k3s/latest/en/networking/
Tailscale integration
servicelb
CoreDNS
Customizing CoreDNS
- K8s docs: Customizing DNS Service
- k3s coredns
Corefileimports config files from/etc/coredns/custom/*.server - If the configMap
coredns-customis present, it will get mounted to/etc/coredns/customand imported by the mainCorefile
k3s wrappers / installers
k3d
k3s in docker: k3d
K3s terraform module
https://registry.terraform.io/modules/xunleii/k3s/module/latest