nixos-servers/kubenix-modules/kitchenowl.nix

62 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-03-29 13:26:05 +00:00
{
kubernetes.resources = {
2024-06-15 20:27:07 +00:00
secrets.kitchenowl.stringData.jwtSecretKey = "ref+sops://secrets/kubernetes.yaml#/kitchenowl/jwtSecretKey";
2024-03-29 13:26:05 +00:00
2024-05-23 19:19:29 +00:00
deployments.kitchenowl = {
metadata.labels.app = "kitchenowl";
2024-05-23 19:19:29 +00:00
spec = {
selector.matchLabels.app = "kitchenowl";
2024-05-23 19:19:29 +00:00
template = {
metadata.labels.app = "kitchenowl";
2024-05-23 19:19:29 +00:00
spec = {
volumes.data.persistentVolumeClaim.claimName = "kitchenowl";
2024-03-29 13:26:05 +00:00
2024-05-23 19:19:29 +00:00
containers.kitchenowl = {
image = "tombursch/kitchenowl:v0.5.1";
ports.web.containerPort = 8080;
2024-04-14 19:00:15 +00:00
2024-05-23 19:19:29 +00:00
env.JWT_SECRET_KEY.valueFrom.secretKeyRef = {
name = "kitchenowl";
key = "jwtSecretKey";
};
2024-04-29 15:43:44 +00:00
2024-05-23 19:19:29 +00:00
volumeMounts = [{
name = "data";
mountPath = "/data";
}];
};
2024-03-29 13:26:05 +00:00
2024-05-23 19:19:29 +00:00
securityContext = {
fsGroup = 0;
fsGroupChangePolicy = "OnRootMismatch";
};
2024-03-29 13:26:05 +00:00
};
};
};
};
2024-04-29 15:43:44 +00:00
services.kitchenowl.spec = {
selector.app = "kitchenowl";
2024-04-29 15:43:44 +00:00
ports.web = {
port = 80;
targetPort = "web";
};
2024-03-29 13:26:05 +00:00
};
};
2024-03-29 13:26:05 +00:00
lab = {
ingresses.kitchenowl = {
host = "boodschappen.kun.is";
service = {
2024-04-29 15:43:44 +00:00
name = "kitchenowl";
portName = "web";
};
2024-03-29 13:26:05 +00:00
};
};
}