mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
13 lines
519 B
Nix
13 lines
519 B
Nix
{ system ? builtins.currentSystem
|
|
, pkgs ? import ../../.. { inherit system; }
|
|
, lib ? pkgs.lib
|
|
}:
|
|
let
|
|
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
|
in
|
|
{
|
|
# Run a single node k3s cluster and verify a pod can run
|
|
single-node = lib.mapAttrs (_: k3s: import ./single-node.nix { inherit system pkgs k3s; }) allK3s;
|
|
# Run a multi-node k3s cluster and verify pod networking works across nodes
|
|
multi-node = lib.mapAttrs (_: k3s: import ./multi-node.nix { inherit system pkgs k3s; }) allK3s;
|
|
}
|