mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
33 lines
694 B
Nix
33 lines
694 B
Nix
{ config, lib, kubenix, pkgs, k8sVersion, ... }: {
|
|
|
|
imports = with kubenix.modules; [ test k8s v1.modules ];
|
|
|
|
test = {
|
|
name = "k8s-v1-modules";
|
|
description = "Simple test tesing CRD";
|
|
assertions = [];
|
|
};
|
|
|
|
kubernetes.version = k8sVersion;
|
|
|
|
kubernetes.moduleDefinitions.app.module = { config, k8s, ... }: {
|
|
kubernetes.resources.deployments.app = {
|
|
spec = {
|
|
replicas = 2;
|
|
selector = {
|
|
matchLabels.app = "app";
|
|
};
|
|
template.spec = {
|
|
containers.app = {
|
|
image = "hello-world";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
kubernetes.modules.myapp = {
|
|
module = "app";
|
|
namespace = "test";
|
|
};
|
|
}
|