/
helmrelease.yaml
86 lines (86 loc) · 2.48 KB
/
helmrelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app immich-machine-learning
namespace: selfhosted
spec:
chart:
spec:
chart: app-template
version: 3.1.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
interval: 30m
dependsOn:
- name: immich-server
values:
controllers:
immichml:
strategy: RollingUpdate
annotations:
configmap.reloader.stakater.com/reload: &configmap immich-configmap
pod:
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
containers:
app:
image:
repository: ghcr.io/immich-app/immich-machine-learning
tag: v1.103.1
env:
IMMICH_MEDIA_LOCATION: &mediaLocation /usr/src/app/upload
MACHINE_LEARNING_HOST: 0.0.0.0
MACHINE_LEARNING_PORT: &port 3003
MACHINE_LEARNING_CACHE_FOLDER: /cache
TRANSFORMERS_CACHE: /cache
resources:
requests:
cpu: 100m
memory: 250Mi
limits:
memory: 4000Mi
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /ping
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 5
readiness: *probes
startup:
enabled: false
service:
app:
controller: immichml
ports:
http:
port: *port
persistence:
library:
existingClaim: immich-media
globalMounts:
- path: *mediaLocation
cache:
existingClaim: immich-ml-cache
globalMounts:
- path: /cache