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