k3s: tuning local development

Mon, Dec 19, 2022 One-minute read

k3s: tuning local development

A couple of tunables for single node master/agent k3s.

Fix high CPU on gnome

Higher usage on Gnome/KDE can be caused by the large number of overlay volumes.

systemctl stop --user gvfs-udisks2-volume-monitor

Disable leader election

For a single node development environment removing leader election can reduce CPU usage.

cat << EOF | sudo tee /etc/rancher/k3s/config.yaml
  - "leader-elect=false"
  - "node-monitor-period=60s"


    #k3s #kubernetes #TIL