Skip to content
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

k3s: use 1.30 for new systems (state version 24.05) #1058

Merged
merged 2 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions doc/src/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Kubernetes Cluster (k3s)

:::{note}
Kubernetes support is in beta. Feel free to use it but we suggest contacting
Kubernetes/k3s is complex. Feel free to use it but we suggest contacting
our support before putting anything into production.
:::

Expand All @@ -30,7 +30,8 @@ run in a process called the `k3s agent`. We will prefer to use the words
`server` and `agent` through the remainder of this document.
:::

We provide version 1.27.x of k3s.
Machines created on NixOS 24.05 use k3s version 1.30.x. Machines upgraded
from earlier platform versions use 1.27.x of k3s by default which was also the default for NixOS 23.11. Contact support if you want to use newer versions of k3s on these machines.

## Reference architecture and minimal resource requirements

Expand Down
5 changes: 4 additions & 1 deletion nixos/roles/k3s/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@
}
];

services.k3s.package = pkgs.k3s_1_27;
}

(lib.mkIf (lib.versionOlder config.system.stateVersion "24.05") {
services.k3s.package = pkgs.k3s_1_27;
})

(lib.mkIf (server || agent) {
flyingcircus.passwordlessSudoPackages = [
{
Expand Down
Loading