From 718a0d7e331988c91d5e0cec549924d2227ad49c Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Thu, 24 Jul 2025 02:27:27 +0200 Subject: [PATCH] add immich --- apps/immich/kustomization.yaml | 7 ++++++ apps/immich/namespace.yaml | 4 ++++ apps/immich/postgres-cluster.yaml | 28 ++++++++++++++++++++++ apps/immich/release.yaml | 39 +++++++++++++++++++++++++++++++ apps/immich/volume.yaml | 13 +++++++++++ apps/kustomization.yaml | 1 + 6 files changed, 92 insertions(+) create mode 100644 apps/immich/kustomization.yaml create mode 100644 apps/immich/namespace.yaml create mode 100644 apps/immich/postgres-cluster.yaml create mode 100644 apps/immich/release.yaml create mode 100644 apps/immich/volume.yaml diff --git a/apps/immich/kustomization.yaml b/apps/immich/kustomization.yaml new file mode 100644 index 0000000..42b9dc9 --- /dev/null +++ b/apps/immich/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + - volume.yaml + - postgres-cluster.yaml + - release.yaml diff --git a/apps/immich/namespace.yaml b/apps/immich/namespace.yaml new file mode 100644 index 0000000..c796392 --- /dev/null +++ b/apps/immich/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: immich diff --git a/apps/immich/postgres-cluster.yaml b/apps/immich/postgres-cluster.yaml new file mode 100644 index 0000000..db9570d --- /dev/null +++ b/apps/immich/postgres-cluster.yaml @@ -0,0 +1,28 @@ +--- +apiVersion: postgresql.cnpg.io/v1 +kind: ImageCatalog +metadata: + name: immich + namespace: immich +spec: + images: + - major: 17 + image: docker.io/tensorchord/pgvecto-rs:pg17-v0.4.0-rootless +--- +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: immich + namespace: immich +spec: + imageCatalogRef: + apiGroup: postgresql.cnpg.io + kind: ImageCatalog + name: immich + major: 17 + + instances: 1 + + storage: + size: 10Gi + storageClass: mayastor-single-hdd diff --git a/apps/immich/release.yaml b/apps/immich/release.yaml new file mode 100644 index 0000000..947c6d1 --- /dev/null +++ b/apps/immich/release.yaml @@ -0,0 +1,39 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: immich + namespace: immich +spec: + interval: 24h + type: "oci" + url: oci://ghcr.io/immich-app/immich-charts +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: immich + namespace: immich +spec: + interval: 30m + chart: + spec: + chart: immich + version: 0.9.3 + sourceRef: + kind: HelmRepository + name: immich + values: + immich: + persistence: + library: + existingClaim: library + + redis: + enabled: true + + postgresql: + global: + postgresql: + auth: + existingSecret: diff --git a/apps/immich/volume.yaml b/apps/immich/volume.yaml new file mode 100644 index 0000000..6c95b9d --- /dev/null +++ b/apps/immich/volume.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: library + namespace: immich +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 50Gi + storageClassName: mayastor-single-hdd diff --git a/apps/kustomization.yaml b/apps/kustomization.yaml index 436c03f..bf76859 100644 --- a/apps/kustomization.yaml +++ b/apps/kustomization.yaml @@ -8,3 +8,4 @@ resources: - librechat - frigate - llama + - immich