mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 23:45:25 +02:00
127 lines
3.7 KiB
YAML
127 lines
3.7 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app immich-server
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 2.4.0
|
|
interval: 30m
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
dependsOn:
|
|
- name: immich-typesense
|
|
- name: immich-redis
|
|
values:
|
|
defaultPodOptions:
|
|
enableServiceLinks: false
|
|
securityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
topologySpreadConstraints:
|
|
- maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: DoNotSchedule
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: *app
|
|
controllers:
|
|
main:
|
|
strategy: RollingUpdate
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
configmap.reloader.stakater.com/reload: &configMap immich-configmap
|
|
secret.reloader.stakater.com/reload: &secret immich-secret
|
|
initContainers:
|
|
init-db:
|
|
image:
|
|
repository: ghcr.io/auricom/postgres-init
|
|
tag: 15.5@sha256:9b1b80d8101d3f1c73ef13b90dff2ab3bc855bd79ebcd334cba57db391ce6db0
|
|
pullPolicy: IfNotPresent
|
|
envFrom: &envFrom
|
|
- configMapRef:
|
|
name: *configMap
|
|
- secretRef:
|
|
name: *secret
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: ghcr.io/immich-app/immich-server
|
|
tag: v1.90.2@sha256:3e68be128c705f4e1c565a38f0a70c7008504f0acaaf122dc13cc6716a69a067
|
|
args: ["start-server.sh"]
|
|
envFrom: *envFrom
|
|
env:
|
|
LOG_LEVEL: log
|
|
# IMMICH_CONFIG_FILE: /config/immich-config.json
|
|
IMMICH_MEDIA_LOCATION: &mediaLocation /usr/src/app/upload
|
|
SERVER_PORT: &port 3001
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 250Mi
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: *port
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
className: nginx
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/enabled: "true"
|
|
external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}.
|
|
hajimari.io/appName: Immich
|
|
nignx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
nginx.ingress.kubernetes.io/upstream-hash-by: "$client_ip"
|
|
hosts:
|
|
- host: &host photos.${SECRET_CLUSTER_DOMAIN}
|
|
paths:
|
|
- path: /
|
|
service:
|
|
name: main
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
type: configMap
|
|
name: immich-server-config
|
|
globalMounts:
|
|
- path: /config
|
|
library:
|
|
existingClaim: immich-nfs
|
|
globalMounts:
|
|
- path: *mediaLocation
|
|
geocoding-dump:
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /usr/src/app/.reverse-geocoding-dump
|
|
transformers-cache:
|
|
type: emptyDir
|
|
globalMounts:
|
|
- path: /usr/src/app/.transformers_cache
|