Skip to content

Instantly share code, notes, and snippets.

@jjzazuet
Last active December 5, 2022 08:51
Show Gist options
  • Save jjzazuet/aef1c19080b9a5e9faadd83f815d4a98 to your computer and use it in GitHub Desktop.
Save jjzazuet/aef1c19080b9a5e9faadd83f815d4a98 to your computer and use it in GitHub Desktop.
k0s Arch notes

Arch can run k0s in a relatively stable way.

Initial setup requires:

  • Installing htop, openssh, nano, dhcpcd.
  • Manually adding localhost in /etc/hosts.
  • Setting the node's hostname in /etc/hostname.

Enable core services:

systemctl enable dhcpcd
systemctl enable sshd

Next, configure /etc/systemd/journald.conf so that logs get stored in memory only.

Storage=volatile
RuntimeMaxUse=32M

Remove stale logs

rm -rfv /var/log/journal

Configure flux

flux bootstrap git \
  --url=ssh://git@<GIT-REPO>:9022/vacco/k0s-lab.git \
  --branch=main \
  --path=<CLUSTER-NAME>

Initial cluster setup steps work as expected in the k0s website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment