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:
parent
fdd535c1fe
commit
3203218d3d
1 changed files with 14 additions and 11 deletions
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue