2024-03-29 13:26:05 +00:00
|
|
|
{
|
|
|
|
kubernetes.resources = {
|
2024-07-14 17:59:49 +00:00
|
|
|
secrets.server.stringData.jwtSecretKey = "ref+sops://secrets/kubernetes.yaml#/kitchenowl/jwtSecretKey";
|
2024-03-29 13:26:05 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
deployments.server.spec = {
|
|
|
|
selector.matchLabels.app = "kitchenowl";
|
2024-04-03 19:19:37 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
strategy = {
|
|
|
|
type = "RollingUpdate";
|
2024-04-03 19:19:37 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
rollingUpdate = {
|
|
|
|
maxSurge = 0;
|
|
|
|
maxUnavailable = 1;
|
|
|
|
};
|
|
|
|
};
|
2024-04-03 19:19:37 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
template = {
|
|
|
|
metadata.labels.app = "kitchenowl";
|
2024-03-29 13:26:05 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
spec = {
|
|
|
|
volumes.data.persistentVolumeClaim.claimName = "data";
|
2024-04-14 19:00:15 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
containers.kitchenowl = {
|
|
|
|
image = "tombursch/kitchenowl:v0.5.1";
|
|
|
|
ports.web.containerPort = 8080;
|
2024-07-28 12:32:28 +00:00
|
|
|
imagePullPolicy = "IfNotPresent";
|
2024-04-29 15:43:44 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
env.JWT_SECRET_KEY.valueFrom.secretKeyRef = {
|
|
|
|
name = "server";
|
|
|
|
key = "jwtSecretKey";
|
2024-05-23 19:19:29 +00:00
|
|
|
};
|
2024-03-29 13:26:05 +00:00
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
volumeMounts = [{
|
|
|
|
name = "data";
|
|
|
|
mountPath = "/data";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
securityContext = {
|
|
|
|
fsGroup = 0;
|
|
|
|
fsGroupChangePolicy = "OnRootMismatch";
|
2024-03-29 13:26:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-14 17:59:49 +00:00
|
|
|
services.server.spec = {
|
2024-04-29 15:43:44 +00:00
|
|
|
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 = {
|
2024-07-14 17:59:49 +00:00
|
|
|
ingresses.web = {
|
2024-04-14 21:34:54 +00:00
|
|
|
host = "boodschappen.kun.is";
|
|
|
|
|
|
|
|
service = {
|
2024-07-14 17:59:49 +00:00
|
|
|
name = "server";
|
2024-04-14 21:34:54 +00:00
|
|
|
portName = "web";
|
|
|
|
};
|
2024-03-29 13:26:05 +00:00
|
|
|
};
|
2024-07-14 17:59:49 +00:00
|
|
|
|
|
|
|
longhorn.persistentVolumeClaim.data = {
|
|
|
|
volumeName = "kitchenowl";
|
|
|
|
storage = "100Mi";
|
|
|
|
};
|
2024-03-29 13:26:05 +00:00
|
|
|
};
|
|
|
|
}
|