nixos-servers/kubenix-modules/cyberchef.nix

36 lines
670 B
Nix
Raw Permalink Normal View History

2024-07-12 08:08:35 +00:00
{ pulledImages, ... }: {
kubernetes.resources = {
deployments.cyberchef.spec = {
replicas = 3;
selector.matchLabels.app = "cyberchef";
template = {
metadata.labels.app = "cyberchef";
2024-04-14 19:43:31 +00:00
spec.containers.cyberchef = {
2024-07-12 08:08:35 +00:00
image = "mpepping/cyberchef:latest";
2024-04-14 19:43:31 +00:00
ports.web.containerPort = 8000;
};
};
};
services.cyberchef.spec = {
selector.app = "cyberchef";
2024-04-14 19:43:31 +00:00
ports.web = {
port = 80;
2024-04-14 19:43:31 +00:00
targetPort = "web";
};
};
};
lab.ingresses.cyberchef = {
host = "cyberchef.kun.is";
service = {
name = "cyberchef";
portName = "web";
};
};
}