Migrate paperless data to longhorn
This commit is contained in:
parent
2077f1f9a3
commit
5629801afe
3 changed files with 22 additions and 9 deletions
|
@ -41,7 +41,7 @@
|
|||
};
|
||||
|
||||
spec = {
|
||||
volumes.data.persistentVolumeClaim.claimName = "paperless-ngx-data";
|
||||
volumes.data.persistentVolumeClaim.claimName = "paperless-data";
|
||||
|
||||
containers.paperless-ngx = {
|
||||
image = "ghcr.io/paperless-ngx/paperless-ngx:2.3";
|
||||
|
@ -64,6 +64,11 @@
|
|||
mountPath = "/data";
|
||||
}];
|
||||
};
|
||||
|
||||
securityContext = {
|
||||
fsGroup = 33;
|
||||
fsGroupChangePolicy = "OnRootMismatch";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -88,7 +93,7 @@
|
|||
};
|
||||
|
||||
spec = {
|
||||
volumes.data.persistentVolumeClaim.claimName = "paperless-ngx-redisdata";
|
||||
volumes.data.persistentVolumeClaim.claimName = "paperless-redisdata";
|
||||
|
||||
containers.redis = {
|
||||
image = "docker.io/library/redis:7";
|
||||
|
@ -99,6 +104,11 @@
|
|||
mountPath = "/data";
|
||||
}];
|
||||
};
|
||||
|
||||
securityContext = {
|
||||
fsGroup = 999;
|
||||
fsGroupChangePolicy = "OnRootMismatch";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -5,14 +5,19 @@
|
|||
|
||||
# volumeMounts = [
|
||||
# {
|
||||
# name = "syncthing";
|
||||
# mountPath = "/syncthing";
|
||||
# name = "paperless-data";
|
||||
# mountPath = "/paperless-data";
|
||||
# }
|
||||
# {
|
||||
# name = "paperless-redisdata";
|
||||
# mountPath = "/paperless-redisdata";
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
|
||||
# volumes = {
|
||||
# syncthing.persistentVolumeClaim.claimName = "syncthing";
|
||||
# paperless-data.persistentVolumeClaim.claimName = "paperless-data";
|
||||
# paperless-redisdata.persistentVolumeClaim.claimName = "paperless-redisdata";
|
||||
# };
|
||||
# };
|
||||
|
||||
|
@ -28,6 +33,8 @@
|
|||
forgejo.storage = "20Gi";
|
||||
kitchenowl.storage = "100Mi";
|
||||
syncthing.storage = "400Mi";
|
||||
paperless-data.storage = "10Gi";
|
||||
paperless-redisdata.storage = "20Mi";
|
||||
};
|
||||
|
||||
nfsVolumes = {
|
||||
|
@ -41,8 +48,6 @@
|
|||
sonarr-config.path = "sonarr/config";
|
||||
bazarr-config.path = "bazarr/config";
|
||||
atticd.path = "atticd";
|
||||
paperless-ngx-redisdata.path = "paperless-ngx/redisdata";
|
||||
paperless-ngx-data.path = "paperless-ngx/data";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,8 +3,6 @@ let
|
|||
cfg = config.lab.data-sharing;
|
||||
|
||||
nfsShares = [
|
||||
"/paperless-ngx/data"
|
||||
"/paperless-ngx/redisdata"
|
||||
"/media"
|
||||
"/media/books"
|
||||
"/media/movies"
|
||||
|
|
Loading…
Reference in a new issue