1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00

Fix volume mounts for Syncthing

Can't have two Volumes using the same existing claim or the pod
never starts.
This commit is contained in:
Antonio Gurgel 2023-11-26 12:00:46 -08:00
parent fdd535c1fe
commit 3203218d3d

View file

@ -12,17 +12,20 @@
TZ = timeZone;
};
persistence = {
config = lib.app-template.mkExistingClaim {
pvc = "svc";
subPath = "syncthing/config";
mountPath = "/config";
readOnly = false;
};
data = lib.app-template.mkExistingClaim {
pvc = "svc";
subPath = "syncthing/data";
mountPath = "/data";
readOnly = false;
data = {
existingClaim = "svc";
advancedMounts.main.main = [
{
path = "/data";
readOnly = false;
subPath = "syncthing/data";
}
{
path = "/config";
readOnly = false;
subPath = "syncthing/config";
}
];
};
};
};