nixos-servers/kubenix-modules/cyberchef.nix
Pim Kunis 0d2b2b90f7 feat(blog): Move to static-websites k8s namespace
refactor(cyberchef): Move to static-websites k8s namespace
2024-07-14 15:31:58 +02:00

35 lines
640 B
Nix

{
kubernetes.resources = {
deployments.cyberchef.spec = {
replicas = 3;
selector.matchLabels.app = "cyberchef";
template = {
metadata.labels.app = "cyberchef";
spec.containers.cyberchef = {
image = "mpepping/cyberchef";
ports.web.containerPort = 8000;
};
};
};
services.cyberchef.spec = {
selector.app = "cyberchef";
ports.web = {
port = 80;
targetPort = "web";
};
};
};
lab.ingresses.cyberchef = {
host = "cyberchef.kun.is";
service = {
name = "cyberchef";
portName = "web";
};
};
}