k3s
- No debian package/repo so far
- AUR packages available
Installation
curl2bash
curl -sfL https://get.k3s.io | sh -
sudo k3s kubectl get node
/usr/local/bin/k3s-uninstall.sh
k3s wrappers / installers
Usage
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/
servicelb
k3os
Uses:
- containerd
- crictl
- Flannel
- CoreDNS
- Host utilities (iptables, socat, etc)
Logs:
- /var/lib/rancher/k3s/agent/containerd/containerd.log
- /var/log/containers/
- /var/log/pods/
- /var/log/k3s-service.log
Storage: /var/lib/rancher/k3s/storage/
vagrant
https://app.vagrantup.com/boxes/search?utf8=%E2%9C%93&sort=downloads&provider=&q=k3os
Install with virt-install
https://github.com/rancher/k3os/issues/133
cd ~/kubernetes/os/k3os
wget https://github.com/rancher/k3os/releases/download/v0.9.0/k3os-amd64.iso
./install.sh
- login with user
rancher
- sudo k3os install
- remove the ISO from the virtual machine and reboot
Running
virsh start --console k3os
ssh k3os
- ssh only accepts public keys
Dont use traefik: https://github.com/rancher/k3os/issues/69#issuecomment-570768225
Procs after first install:
- /sbin/init -> /bin/busybox
- bpfilter_umh
- udevd
- acpid
- supervise-daemo
k3d
k3s in docker: k3d
K3s terraform module
https://registry.terraform.io/modules/xunleii/k3s/module/latest