🔧 immich

This commit is contained in:
auricom
2023-10-06 00:04:55 +02:00
parent db7f7528ff
commit 49e92000f5
5 changed files with 57 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ data:
# REDIS_DBINDEX: "15" # REDIS_DBINDEX: "15"
REDIS_HOSTNAME: immich-redis.default.svc.cluster.local REDIS_HOSTNAME: immich-redis.default.svc.cluster.local
REDIS_PORT: "6379" REDIS_PORT: "6379"
TRANSFORMERS_CACHE: /usr/src/app/.transformers_cache
TYPESENSE_DATA_DIR: /config TYPESENSE_DATA_DIR: /config
TYPESENSE_HOST: immich-typesense.default.svc.cluster.local. TYPESENSE_HOST: immich-typesense.default.svc.cluster.local.
# Below are deprecated and can only be set in the Immich Admin settings # Below are deprecated and can only be set in the Immich Admin settings

View File

@@ -31,7 +31,6 @@ spec:
- name: immich-redis - name: immich-redis
values: values:
controller: controller:
replicas: 1
strategy: Recreate strategy: Recreate
annotations: annotations:
configmap.reloader.stakater.com/reload: &configMap immich-configmap configmap.reloader.stakater.com/reload: &configMap immich-configmap
@@ -49,6 +48,11 @@ spec:
ports: ports:
http: http:
port: 3003 port: 3003
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
persistence: persistence:
library: library:
enabled: true enabled: true
@@ -58,6 +62,14 @@ spec:
enabled: true enabled: true
existingClaim: immich-machine-learning-cache existingClaim: immich-machine-learning-cache
mountPath: /cache mountPath: /cache
geocoding-dump:
enabled: true
type: emptyDir
mountPath: /usr/src/app/.reverse-geocoding-dump
transformers-cache:
enabled: true
type: emptyDir
mountPath: /usr/src/app/.transformers_cache
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname

View File

@@ -31,7 +31,6 @@ spec:
- name: immich-redis - name: immich-redis
values: values:
controller: controller:
replicas: 2
strategy: RollingUpdate strategy: RollingUpdate
annotations: annotations:
configmap.reloader.stakater.com/reload: &configMap immich-configmap configmap.reloader.stakater.com/reload: &configMap immich-configmap
@@ -48,11 +47,31 @@ spec:
service: service:
main: main:
enabled: false enabled: false
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [44, 105]
persistence: persistence:
library: library:
enabled: true enabled: true
existingClaim: immich-nfs existingClaim: immich-nfs
mountPath: /usr/src/app/upload mountPath: /usr/src/app/upload
geocoding-dump:
enabled: true
type: emptyDir
mountPath: /usr/src/app/.reverse-geocoding-dump
geoname-dump:
enabled: true
type: emptyDir
mountPath: /usr/src/app/node_modules/local-reverse-geocoder/geonames_dump
transformers-cache:
enabled: true
type: emptyDir
mountPath: /usr/src/app/.transformers_cache
nodeSelector:
intel.feature.node.kubernetes.io/gpu: "true"
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
@@ -62,5 +81,9 @@ spec:
app.kubernetes.io/name: *app app.kubernetes.io/name: *app
resources: resources:
requests: requests:
gpu.intel.com/i915: 1
cpu: 100m cpu: 100m
memory: 250Mi memory: 1000Mi
limits:
gpu.intel.com/i915: 1
memory: 6000Mi

View File

@@ -40,7 +40,6 @@ spec:
- secretRef: - secretRef:
name: &secret immich-secret name: &secret immich-secret
controller: controller:
replicas: 2
strategy: RollingUpdate strategy: RollingUpdate
annotations: annotations:
configmap.reloader.stakater.com/reload: *configMap configmap.reloader.stakater.com/reload: *configMap
@@ -55,11 +54,24 @@ spec:
ports: ports:
http: http:
port: 3001 port: 3001
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
persistence: persistence:
library: library:
enabled: true enabled: true
existingClaim: immich-nfs existingClaim: immich-nfs
mountPath: /usr/src/app/upload mountPath: /usr/src/app/upload
geocoding-dump:
enabled: true
type: emptyDir
mountPath: /usr/src/app/.reverse-geocoding-dump
transformers-cache:
enabled: true
type: emptyDir
mountPath: /usr/src/app/.transformers_cache
topologySpreadConstraints: topologySpreadConstraints:
- maxSkew: 1 - maxSkew: 1
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname

View File

@@ -31,7 +31,6 @@ spec:
- name: immich-redis - name: immich-redis
values: values:
controller: controller:
replicas: 2
strategy: RollingUpdate strategy: RollingUpdate
annotations: annotations:
configmap.reloader.stakater.com/reload: &configMap immich-configmap configmap.reloader.stakater.com/reload: &configMap immich-configmap
@@ -74,6 +73,11 @@ spec:
tls: tls:
- hosts: - hosts:
- *host - *host
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
persistence: persistence:
library: library:
enabled: true enabled: true