-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
experiment with NixOS #3221
Comments
Leveraging an intel N100 'T9 Plus mini PC' from China as the node. Installing NixOS via USB-based installer. Most of this is documented here and won't repeat it for this write-up. Using Nix to install and configure k3s via this configuration. |
Issues encountered and resolutions:
|
This is going well so far. Pretty easily added two more nodes running NixOS. However, the issue of k3s upgrades become apparent again when I discovered that system upgrade controller upgraded the rest of the cluster to Still don't have a good solution for how to solve automated nixos-rebuilds, especially with secrets involved. Still pondering. |
Updates are currently being handled from a base host and 'pushing' new config to the k3s nodes, for example: for node in f g h; NIX_SSHOPTS="-A" nixos-rebuild switch --flake .#k3s-$node --target-host nix@k3s-$node --use-remote-sudo; end This, in conjunction with a scheduled reboot checker and associated |
For the initial user password, hashedPasswordFile can be a possibility |
I'm NixOS k3s maintainer. I use |
Background
Related, in theme, to #2865
After adopting Nix & NixOS for other uses, I thought it would be fun to try using NixOS as the basis for running k3s nodes in this cluster.
Motivation
Ubuntu
There's nothing 'wrong' with running k3s in headless ubuntu server nodes:
NixOS
However, the desire to try new things and benefits of a single git-based declarative configuration, along with a consistent shell experience has some appeal to try this for running kubernetes nodes.
Approach
Will document process of using NixOS for a k3s node in this issue along with blockers and solutions and eventual conclusion.
The text was updated successfully, but these errors were encountered: