nixos-servers/kubenix-modules/cyberchef.nix

37 lines
704 B
Nix
Raw Normal View History

2024-07-30 19:28:35 +00:00
{ myLib, ... }: {
kubernetes.resources = {
deployments.cyberchef.spec = {
replicas = 3;
selector.matchLabels.app = "cyberchef";
template = {
metadata.labels.app = "cyberchef";
spec.containers.cyberchef = {
2024-07-30 19:28:35 +00:00
image = myLib.globals.images.cyberchef;
imagePullPolicy = "Always";
ports.web.containerPort = 8000;
};
};
};
services.cyberchef.spec = {
selector.app = "cyberchef";
ports.web = {
port = 80;
targetPort = "web";
2024-04-14 19:43:31 +00:00
};
};
};
lab.ingresses.cyberchef = {
host = "cyberchef.kun.is";
service = {
name = "cyberchef";
portName = "web";
};
};
}