nixos-servers/kubenix-modules/cyberchef.nix
Pim Kunis 07bd2e1e01 feat(freshrss): Move to its own namespace
feat(longhorn): Add ability to specify PVC namespace
refactor(freshrss): Simplify env variable declaration
2024-07-14 11:47:46 +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";
};
};
}