update immich + vectorchord migration
This commit is contained in:
parent
9da246c877
commit
3acacd98aa
39
apps/immich/immich.postgres.yaml
Normal file
39
apps/immich/immich.postgres.yaml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: immich-postgresql
|
||||||
|
spec:
|
||||||
|
instances: 1
|
||||||
|
imageName: ghcr.io/tensorchord/cloudnative-vectorchord:16-0.3.0
|
||||||
|
|
||||||
|
bootstrap:
|
||||||
|
initdb:
|
||||||
|
owner: immich
|
||||||
|
database: immich
|
||||||
|
secret:
|
||||||
|
name: postgres-password
|
||||||
|
dataChecksums: true
|
||||||
|
postInitApplicationSQL:
|
||||||
|
- ALTER USER immich WITH SUPERUSER;
|
||||||
|
- CREATE EXTENSION IF NOT EXISTS vchord CASCADE;
|
||||||
|
- CREATE EXTENSION IF NOT EXISTS "cube";
|
||||||
|
- CREATE EXTENSION IF NOT EXISTS "earthdistance";
|
||||||
|
|
||||||
|
postgresql:
|
||||||
|
shared_preload_libraries:
|
||||||
|
- "vchord.so"
|
||||||
|
|
||||||
|
storage:
|
||||||
|
size: 5Gi
|
||||||
|
storageClass: nfs-client
|
||||||
|
|
||||||
|
monitoring:
|
||||||
|
enablePodMonitor: true
|
||||||
|
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 1024Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 512Mi
|
@ -1,10 +1,10 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- postgres.yaml
|
- immich.postgres.yaml
|
||||||
- postgres.sealedsecret.yaml
|
- postgres.sealedsecret.yaml
|
||||||
- servicemonitor.yaml
|
- servicemonitor.yaml
|
||||||
|
|
||||||
@ -22,9 +22,9 @@ helmCharts:
|
|||||||
|
|
||||||
images:
|
images:
|
||||||
- name: ghcr.io/immich-app/immich-machine-learning
|
- name: ghcr.io/immich-app/immich-machine-learning
|
||||||
newTag: v1.132.3
|
newTag: v1.134.0
|
||||||
- name: ghcr.io/immich-app/immich-server
|
- name: ghcr.io/immich-app/immich-server
|
||||||
newTag: v1.132.3
|
newTag: v1.134.0
|
||||||
|
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
|
REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
|
||||||
DB_HOSTNAME: "immich-postgres-rw"
|
DB_HOSTNAME: "immich-postgresql-rw"
|
||||||
DB_USERNAME:
|
DB_USERNAME:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-password
|
name: postgres-password
|
||||||
@ -56,7 +56,7 @@ machine-learning:
|
|||||||
persistence:
|
persistence:
|
||||||
cache:
|
cache:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 10Gi
|
size: 200Gi
|
||||||
# Optional: Set this to pvc to avoid downloading the ML models every start.
|
# Optional: Set this to pvc to avoid downloading the ML models every start.
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
accessMode: ReadWriteMany
|
accessMode: ReadWriteMany
|
||||||
|
Loading…
x
Reference in New Issue
Block a user