Migrate kitchenowl data to longhorn

This commit is contained in:
Pim Kunis 2024-05-23 21:19:29 +02:00
parent 1e894a8672
commit 44704472b4
3 changed files with 28 additions and 28 deletions

View file

@ -2,34 +2,36 @@
kubernetes.resources = { kubernetes.resources = {
secrets.kitchenowl.stringData.jwtSecretKey = "ref+sops://secrets/sops.yaml#/kitchenowl/jwtSecretKey"; secrets.kitchenowl.stringData.jwtSecretKey = "ref+sops://secrets/sops.yaml#/kitchenowl/jwtSecretKey";
deployments = { deployments.kitchenowl = {
metadata.labels.app = "kitchenowl";
kitchenowl = { spec = {
metadata.labels.app = "kitchenowl"; selector.matchLabels.app = "kitchenowl";
spec = { template = {
selector.matchLabels.app = "kitchenowl"; metadata.labels.app = "kitchenowl";
template = { spec = {
metadata.labels.app = "kitchenowl"; volumes.data.persistentVolumeClaim.claimName = "kitchenowl";
spec = { containers.kitchenowl = {
volumes.data.persistentVolumeClaim.claimName = "kitchenowl"; image = "tombursch/kitchenowl:v0.5.1";
ports.web.containerPort = 8080;
containers.kitchenowl = { env.JWT_SECRET_KEY.valueFrom.secretKeyRef = {
image = "tombursch/kitchenowl:v0.5.1"; name = "kitchenowl";
ports.web.containerPort = 8080; key = "jwtSecretKey";
env.JWT_SECRET_KEY.valueFrom.secretKeyRef = {
name = "kitchenowl";
key = "jwtSecretKey";
};
volumeMounts = [{
name = "data";
mountPath = "/data";
}];
}; };
volumeMounts = [{
name = "data";
mountPath = "/data";
}];
};
securityContext = {
fsGroup = 0;
fsGroupChangePolicy = "OnRootMismatch";
}; };
}; };
}; };

View file

@ -5,14 +5,14 @@
# volumeMounts = [ # volumeMounts = [
# { # {
# name = "forgejo"; # name = "kitchenowl";
# mountPath = "/forgejo"; # mountPath = "/kitchenowl";
# } # }
# ]; # ];
# }; # };
# volumes = { # volumes = {
# forgejo.persistentVolumeClaim.claimName = "forgejo"; # kitchenowl.persistentVolumeClaim.claimName = "kitchenowl";
# }; # };
# }; # };
@ -26,6 +26,7 @@
pihole-data.storage = "750Mi"; pihole-data.storage = "750Mi";
pihole-dnsmasq.storage = "16Mi"; pihole-dnsmasq.storage = "16Mi";
forgejo.storage = "20Gi"; forgejo.storage = "20Gi";
kitchenowl.storage = "100Mi";
}; };
nfsVolumes = { nfsVolumes = {
@ -40,7 +41,6 @@
bazarr-config.path = "bazarr/config"; bazarr-config.path = "bazarr/config";
atticd.path = "atticd"; atticd.path = "atticd";
syncthing.path = "syncthing/config"; syncthing.path = "syncthing/config";
kitchenowl.path = "kitchenowl/data";
paperless-ngx-redisdata.path = "paperless-ngx/redisdata"; paperless-ngx-redisdata.path = "paperless-ngx/redisdata";
paperless-ngx-data.path = "paperless-ngx/data"; paperless-ngx-data.path = "paperless-ngx/data";
}; };

View file

@ -3,8 +3,6 @@ let
cfg = config.lab.data-sharing; cfg = config.lab.data-sharing;
nfsShares = [ nfsShares = [
"/forgejo/data"
"/kitchenowl/data"
"/syncthing/config" "/syncthing/config"
"/paperless-ngx/data" "/paperless-ngx/data"
"/paperless-ngx/redisdata" "/paperless-ngx/redisdata"