Skip to content

Commit

Permalink
chore: mount separate external library volume for previews (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
bo0tzz authored Jan 23, 2025
1 parent 81ed125 commit 325b044
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/apps/preview/immich-release/app
path: ./templates/kubernetes/immich-preview
prune: true
sourceRef:
kind: GitRepository
Expand Down
5 changes: 0 additions & 5 deletions kubernetes/apps/preview/immich-release/app/kustomization.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion kubernetes/apps/preview/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./immich-release/ks.yaml
- ./immich-release.yaml
11 changes: 11 additions & 0 deletions templates/kubernetes/immich-preview/external-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: ${NAME}-external
spec:
storageClassName: zfs
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
5 changes: 5 additions & 0 deletions templates/kubernetes/immich-preview/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ spec:
server:
image:
pullPolicy: Always
persistence:
external:
enabled: true
mountPath: /external
existingClaim: ${NAME}-external
ingress:
main:
enabled: true
Expand Down
1 change: 1 addition & 0 deletions templates/kubernetes/immich-preview/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./library-volume.yaml
- ./external-volume.yaml
- ./database.yaml
- ./helmrelease.yaml

0 comments on commit 325b044

Please sign in to comment.