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