Migrate syncthing data to longhorn

This commit is contained in:
Pim Kunis 2024-05-23 21:34:29 +02:00
parent 44704472b4
commit 2077f1f9a3
3 changed files with 44 additions and 40 deletions

View file

@ -6,46 +6,51 @@
TZ = "Europe/Amsterdam"; TZ = "Europe/Amsterdam";
}; };
# deployments.syncthing = { deployments.syncthing = {
# metadata.labels.app = "syncthing"; metadata.labels.app = "syncthing";
# spec = { spec = {
# selector.matchLabels.app = "syncthing"; selector.matchLabels.app = "syncthing";
# template = { template = {
# metadata.labels.app = "syncthing"; metadata.labels.app = "syncthing";
# spec = { spec = {
# containers.syncthing = { containers.syncthing = {
# image = "lscr.io/linuxserver/syncthing:1.23.6"; image = "lscr.io/linuxserver/syncthing:1.23.6";
# envFrom = [{ configMapRef.name = "syncthing"; }]; envFrom = [{ configMapRef.name = "syncthing"; }];
# ports.web.containerPort = 8384; ports.web.containerPort = 8384;
# volumeMounts = [ volumeMounts = [
# { {
# name = "config"; name = "config";
# mountPath = "/config"; mountPath = "/config";
# } }
# { {
# name = "nextcloud-data"; name = "nextcloud-data";
# mountPath = "/data"; mountPath = "/data";
# } }
# { {
# name = "music"; name = "music";
# mountPath = "/music"; mountPath = "/music";
# } }
# ]; ];
# }; };
# volumes = { volumes = {
# config.persistentVolumeClaim.claimName = "syncthing"; config.persistentVolumeClaim.claimName = "syncthing";
# nextcloud-data.persistentVolumeClaim.claimName = "nextcloud"; nextcloud-data.persistentVolumeClaim.claimName = "nextcloud";
# music.persistentVolumeClaim.claimName = "music"; music.persistentVolumeClaim.claimName = "music";
# }; };
# };
# }; securityContext = {
# }; fsGroup = 33;
# }; fsGroupChangePolicy = "OnRootMismatch";
};
};
};
};
};
services.syncthing.spec = { services.syncthing.spec = {
selector.app = "syncthing"; selector.app = "syncthing";

View file

@ -5,14 +5,14 @@
# volumeMounts = [ # volumeMounts = [
# { # {
# name = "kitchenowl"; # name = "syncthing";
# mountPath = "/kitchenowl"; # mountPath = "/syncthing";
# } # }
# ]; # ];
# }; # };
# volumes = { # volumes = {
# kitchenowl.persistentVolumeClaim.claimName = "kitchenowl"; # syncthing.persistentVolumeClaim.claimName = "syncthing";
# }; # };
# }; # };
@ -27,6 +27,7 @@
pihole-dnsmasq.storage = "16Mi"; pihole-dnsmasq.storage = "16Mi";
forgejo.storage = "20Gi"; forgejo.storage = "20Gi";
kitchenowl.storage = "100Mi"; kitchenowl.storage = "100Mi";
syncthing.storage = "400Mi";
}; };
nfsVolumes = { nfsVolumes = {
@ -40,7 +41,6 @@
sonarr-config.path = "sonarr/config"; sonarr-config.path = "sonarr/config";
bazarr-config.path = "bazarr/config"; bazarr-config.path = "bazarr/config";
atticd.path = "atticd"; atticd.path = "atticd";
syncthing.path = "syncthing/config";
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,7 +3,6 @@ let
cfg = config.lab.data-sharing; cfg = config.lab.data-sharing;
nfsShares = [ nfsShares = [
"/syncthing/config"
"/paperless-ngx/data" "/paperless-ngx/data"
"/paperless-ngx/redisdata" "/paperless-ngx/redisdata"
"/media" "/media"