2022-07-22 06:13:20 +00:00
|
|
|
{ system ? builtins.currentSystem
|
|
|
|
, pkgs ? import ../../.. { inherit system; }
|
2023-02-09 09:57:37 +00:00
|
|
|
, lib ? pkgs.lib
|
2022-07-22 06:13:20 +00:00
|
|
|
}:
|
2023-02-09 09:57:37 +00:00
|
|
|
let
|
2023-02-14 13:23:35 +00:00
|
|
|
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
2023-02-09 09:57:37 +00:00
|
|
|
in
|
2022-07-22 06:13:20 +00:00
|
|
|
{
|
|
|
|
# Run a single node k3s cluster and verify a pod can run
|
2023-02-09 09:57:37 +00:00
|
|
|
single-node = lib.mapAttrs (_: k3s: import ./single-node.nix { inherit system pkgs k3s; }) allK3s;
|
2022-07-22 06:50:25 +00:00
|
|
|
# Run a multi-node k3s cluster and verify pod networking works across nodes
|
2023-02-09 09:57:37 +00:00
|
|
|
multi-node = lib.mapAttrs (_: k3s: import ./multi-node.nix { inherit system pkgs k3s; }) allK3s;
|
2022-07-22 06:13:20 +00:00
|
|
|
}
|