nixos-servers/kubenix-modules/cyberchef.nix

36 lines
628 B
Nix
Raw Normal View History

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