Update chart and add valkey, config new cnpg

This commit is contained in:
Ruben Hensen
2026-01-21 01:14:12 +01:00
parent ba033480a7
commit d4257e0841
+59 -100
View File
@@ -16,148 +16,107 @@ spec:
sources: sources:
- chart: immich - chart: immich
repoURL: https://immich-app.github.io/immich-charts repoURL: https://immich-app.github.io/immich-charts
targetRevision: 0.8.5 # Chart version! https://argo-cd.readthedocs.io/en/latest/user-guide/application-specification/ targetRevision: 0.10.3
helm: helm:
values: | values: |
env: controllers:
REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}' main:
DB_HOSTNAME: "{{ .Release.Name }}-postgresql" containers:
DB_USERNAME: "{{ .Values.postgresql.global.postgresql.auth.username }}" main:
DB_DATABASE_NAME: "{{ .Values.postgresql.global.postgresql.auth.database }}" image:
# -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance tag: v2.4.1
DB_PASSWORD: "{{ .Values.postgresql.global.postgresql.auth.password }}" env:
IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}' # External PostgreSQL connection
DB_HOSTNAME: "immich-postgres-rw"
image: DB_PORT: "5432"
tag: v1.125.7 DB_USERNAME: "immich"
DB_DATABASE_NAME: "immich"
# Reference the CNPG secret for password
DB_PASSWORD:
valueFrom:
secretKeyRef:
name: immich-postgres-app
key: password
# Valkey (Redis replacement)
REDIS_HOSTNAME: '{{ printf "%s-valkey" .Release.Name }}'
IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'
immich: immich:
metrics: metrics:
# Enabling this will create the service monitors needed to monitor immich with the prometheus operator
enabled: false enabled: false
persistence: persistence:
# Main data store for all photos shared between different components.
library: library:
# Automatically creating the library volume is not supported by this chart
# You have to specify an existing PVC to use
existingClaim: immich-claim existingClaim: immich-claim
# configuration is immich-config.json converted to yaml # Enable Valkey (Redis replacement)
# ref: https://immich.app/docs/install/config-file/ valkey:
#
configuration: {}
# trash:
# enabled: false
# days: 30
# storageTemplate:
# enabled: true
# template: "{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}"
# Dependencies
postgresql:
enabled: true enabled: true
image: persistence:
repository: tensorchord/pgvecto-rs data:
tag: pg14-v0.2.0 enabled: true
global: size: 1Gi
postgresql:
auth:
username: immich
database: immich
password: immich
primary:
containerSecurityContext:
readOnlyRootFilesystem: false
persistence:
storageClass: longhorn storageClass: longhorn
initdb: type: persistentVolumeClaim
scripts:
create-extensions.sql: |
CREATE EXTENSION cube;
CREATE EXTENSION earthdistance;
CREATE EXTENSION vectors;
resources:
limits: {}
requests:
cpu: 200m
memory: 256Mi
redis:
enabled: true
image:
repository: bitnamilegacy/redis
architecture: standalone
auth:
enabled: false
master:
persistence:
storageClass: longhorn
# Immich components
server: server:
enabled: true enabled: true
image: controllers:
repository: ghcr.io/immich-app/immich-server main:
pullPolicy: IfNotPresent containers:
probes: main:
startup: image:
enabled: true repository: ghcr.io/immich-app/immich-server
spec: pullPolicy: IfNotPresent
initialDelaySeconds: 0 probes:
timeoutSeconds: 1 startup:
periodSeconds: 5 enabled: true
failureThreshold: 1000 spec:
initialDelaySeconds: 0
timeoutSeconds: 1
periodSeconds: 5
failureThreshold: 1000
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: nginx className: nginx
annotations: annotations:
# proxy-body-size is set to 0 to remove the body limit on file uploads
nginx.ingress.kubernetes.io/proxy-body-size: "0" nginx.ingress.kubernetes.io/proxy-body-size: "0"
cert-manager.io/cluster-issuer: prod-cluster-issuer cert-manager.io/cluster-issuer: prod-cluster-issuer
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
hosts: hosts:
# - host: immich.hensen.io
# paths:
# - path: "/"
- host: mbg.hensen.io - host: mbg.hensen.io
paths: paths:
- path: "/" - path: "/"
service: service:
name: sol-auth-svc identifier: main
port: 8002
- host: foto.scoutingmbg.nl - host: foto.scoutingmbg.nl
paths: paths:
- path: "/" - path: "/"
service: service:
name: sol-auth-svc identifier: main
port: 8002
tls: tls:
- secretName: letsencrypt-prod - secretName: letsencrypt-prod
hosts: hosts:
# - immich.hensen.io
- mbg.hensen.io - mbg.hensen.io
- foto.scoutingmbg.nl - foto.scoutingmbg.nl
machine-learning: machine-learning:
enabled: true enabled: true
image: controllers:
repository: ghcr.io/immich-app/immich-machine-learning main:
pullPolicy: IfNotPresent containers:
env: main:
TRANSFORMERS_CACHE: /cache image:
repository: ghcr.io/immich-app/immich-machine-learning
pullPolicy: IfNotPresent
env:
TRANSFORMERS_CACHE: /cache
HF_XET_CACHE: /cache/huggingface-xet
MPLCONFIGDIR: /cache/matplotlib-config
persistence: persistence:
cache: cache:
enabled: true enabled: true
size: 10Gi size: 10Gi
# Optional: Set this to pvc to avoid downloading the ML models every start.
type: emptyDir type: emptyDir
accessMode: ReadWriteMany
# storageClass: your-class
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc