kubenix/docs/content/examples/deployment/default.nix

13 lines
386 B
Nix
Raw Normal View History

2023-06-03 03:11:07 -04:00
{kubenix ? import ../../../..}:
2023-06-03 02:38:28 -04:00
kubenix.evalModules.${builtins.currentSystem} {
2023-06-03 03:11:07 -04:00
module = {kubenix, ...}: {
2023-06-03 02:38:28 -04:00
# instead of defining everything inline, let's import it
2023-06-03 03:11:07 -04:00
imports = [./module.nix];
2022-08-29 02:04:47 -04:00
2023-06-03 02:38:28 -04:00
# annotate the generated resources with a project name
2022-08-29 02:04:47 -04:00
kubenix.project = "example";
2023-06-03 02:38:28 -04:00
# define a target api version to validate output
2022-08-29 02:04:47 -04:00
kubernetes.version = "1.24";
};
}