nixos-servers/kubenix-modules/cyberchef.nix
Pim Kunis cf804ac260 refactor(cyberchef): Rename k8s resources
refactor(freshrss): Remove useless deployment label
2024-07-14 12:29:36 +02:00

35 lines
628 B
Nix

{
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";
};
};
};
lab.ingresses.server = {
host = "cyberchef.kun.is";
service = {
name = "server";
portName = "web";
};
};
}