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,9 +2,7 @@
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 = {
kitchenowl = {
metadata.labels.app = "kitchenowl"; metadata.labels.app = "kitchenowl";
spec = { spec = {
@ -30,6 +28,10 @@
mountPath = "/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"