Skip to content

Commit

Permalink
nixos/k3s: use same k3s package in multi-node test
Browse files Browse the repository at this point in the history
The test previously violated the Kubernetes version skew policy by
deploying a kubelet of hte most recent version in a cluster with an
older apiserver.

(cherry picked from commit 2a79402)
  • Loading branch information
rorosen authored and github-actions[bot] committed Dec 24, 2024
1 parent 037a4b4 commit c4dad2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/tests/k3s/multi-node.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ import ../make-test-python.nix (
services.k3s = {
inherit tokenFile;
enable = true;
package = k3s;
serverAddr = "https://192.168.1.1:6443";
clusterInit = false;
extraFlags = builtins.toString [
Expand Down Expand Up @@ -161,6 +162,7 @@ import ../make-test-python.nix (
inherit tokenFile;
enable = true;
role = "agent";
package = k3s;
serverAddr = "https://192.168.1.3:6443";
extraFlags = lib.concatStringsSep " " [
"--pause-image"
Expand Down

0 comments on commit c4dad2b

Please sign in to comment.