66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: immich-main-chart
|
|
namespace: argocd # Ensure this is the namespace where Argo CD is installed
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "0"
|
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: "https://immich-app.github.io/immich-charts"
|
|
chart: immich
|
|
targetRevision: 0.x
|
|
helm:
|
|
releaseName: immich
|
|
valuesObject:
|
|
image:
|
|
tag: {{ .Values.Release.appVersion }}
|
|
immich:
|
|
persistence:
|
|
library:
|
|
existingClaim: immich-library
|
|
redis:
|
|
enabled: true
|
|
env:
|
|
- name: DB_HOSTNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: immich-pg-app
|
|
key: host
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: immich-pg-app
|
|
key: password
|
|
- name: DB_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: immich-pg-app
|
|
key: username
|
|
- name: DB_DATABASE_NAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: immich-pg-app
|
|
key: dbname
|
|
- name: REDIS_HOSTNAME
|
|
value: immich-redis-master
|
|
# value: '{{ printf "%s-redis-master" .Release.Name }}'
|
|
- name: IMMICH_MACHINE_LEARNING_URL
|
|
value: "http://immich-machine-learning:3003"
|
|
# value: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'
|
|
destination:
|
|
server: https://kubernetes.default.svc # Targeting the current Kubernetes cluster
|
|
namespace: {{ .Values.mainNamespace }}
|
|
syncPolicy:
|
|
automated:
|
|
prune: true # Automatically remove resources no longer in the repo
|
|
selfHeal: true # Automatically self-heal when drift is detected
|
|
syncOptions:
|
|
- ApplyOutOfSyncOnly=true
|
|
- ServerSideApply=true
|
|
- CreateNamespace=true
|