summaryrefslogtreecommitdiff
path: root/f3s
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-04 16:23:18 +0300
committerPaul Buetow <paul@buetow.org>2026-04-04 16:23:18 +0300
commit5daa0f8fde714afc0de964cffeab0d064387475d (patch)
tree08a8f9a4393c711f89ba374165796e4026883a02 /f3s
parentc8d7fb2b4a90dd90417f632d31d7583b722f1f60 (diff)
fix(immich): use correctly nested controllers structure for affinity and 4Gi resources
Diffstat (limited to 'f3s')
-rw-r--r--f3s/argocd-apps/services/immich.yaml130
-rw-r--r--f3s/immich/values.yaml160
2 files changed, 167 insertions, 123 deletions
diff --git a/f3s/argocd-apps/services/immich.yaml b/f3s/argocd-apps/services/immich.yaml
index fa65cde..39d94b7 100644
--- a/f3s/argocd-apps/services/immich.yaml
+++ b/f3s/argocd-apps/services/immich.yaml
@@ -32,27 +32,78 @@ spec:
persistence:
library:
existingClaim: "immich-library-pvc"
+ controllers:
+ server:
+ strategy: RollingUpdate
+ containers:
+ main:
+ image:
+ tag: v2.5.5
+ resources:
+ requests:
+ cpu: 500m
+ memory: 512Mi
+ limits:
+ memory: 4Gi
+ pod:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - weight: 100
+ podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app.kubernetes.io/name
+ operator: In
+ values:
+ - machine-learning
+ topologyKey: "kubernetes.io/hostname"
+ machine-learning:
+ strategy: RollingUpdate
+ containers:
+ main:
+ image:
+ tag: v2.5.5
+ resources:
+ requests:
+ cpu: 500m
+ memory: 512Mi
+ limits:
+ memory: 4Gi
+ pod:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - weight: 100
+ podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app.kubernetes.io/name
+ operator: In
+ values:
+ - server
+ topologyKey: "kubernetes.io/hostname"
+ persistence:
+ cache:
+ enabled: true
+ type: persistentVolumeClaim
+ size: 10Gi
+ storageClass: ""
+ existingClaim: "immich-ml-cache-pvc"
+ main:
+ containers:
+ main:
+ env:
+ DB_HOSTNAME: immich-postgres
+ DB_DATABASE_NAME: immich
+ DB_USERNAME: immich
+ DB_PASSWORD:
+ valueFrom:
+ secretKeyRef:
+ name: immich-db-secret
+ key: password
server:
enabled: true
- resources:
- requests:
- cpu: 500m
- memory: 512Mi
- limits:
- memory: 4Gi
-
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - weight: 100
- podAffinityTerm:
- labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - machine-learning
- topologyKey: "kubernetes.io/hostname"
persistence:
ext-albena-rw:
enabled: true
@@ -93,47 +144,6 @@ spec:
service:
identifier: main
port: 2283
- machine-learning:
- enabled: true
- resources:
- requests:
- cpu: 500m
- memory: 512Mi
- limits:
- memory: 4Gi
-
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - weight: 100
- podAffinityTerm:
- labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - server
- topologyKey: "kubernetes.io/hostname"
- persistence:
- cache:
- enabled: true
- type: persistentVolumeClaim
- size: 10Gi
- storageClass: ""
- existingClaim: "immich-ml-cache-pvc"
- controllers:
- main:
- containers:
- main:
- env:
- DB_HOSTNAME: immich-postgres
- DB_DATABASE_NAME: immich
- DB_USERNAME: immich
- DB_PASSWORD:
- valueFrom:
- secretKeyRef:
- name: immich-db-secret
- key: password
destination:
server: https://kubernetes.default.svc
namespace: services
diff --git a/f3s/immich/values.yaml b/f3s/immich/values.yaml
index 6ebc876..8bcc8cf 100644
--- a/f3s/immich/values.yaml
+++ b/f3s/immich/values.yaml
@@ -19,27 +19,105 @@ immich:
library:
existingClaim: "immich-library-pvc"
-# Server component configuration
+# Main components using bjw-s common library structure (controllers key)
+controllers:
+ server:
+ strategy: RollingUpdate
+ containers:
+ main:
+ resources:
+ requests:
+ cpu: 500m
+ memory: 512Mi
+ limits:
+ memory: 4Gi
+ pod:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - weight: 100
+ podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app.kubernetes.io/name
+ operator: In
+ values:
+ - machine-learning
+ topologyKey: "kubernetes.io/hostname"
+
+ machine-learning:
+ strategy: RollingUpdate
+ containers:
+ main:
+ resources:
+ requests:
+ cpu: 500m
+ memory: 512Mi
+ limits:
+ memory: 4Gi
+ pod:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - weight: 100
+ podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app.kubernetes.io/name
+ operator: In
+ values:
+ - server
+ topologyKey: "kubernetes.io/hostname"
+ persistence:
+ cache:
+ enabled: true
+ type: persistentVolumeClaim
+ size: 10Gi
+ storageClass: ""
+ existingClaim: "immich-ml-cache-pvc"
+
+ main:
+ containers:
+ main:
+ env:
+ DB_HOSTNAME: immich-postgres
+ DB_DATABASE_NAME: immich
+ DB_USERNAME: immich
+ DB_PASSWORD:
+ valueFrom:
+ secretKeyRef:
+ name: immich-db-secret
+ key: password
+
+# Ingress and In-line components
server:
enabled: true
- resources:
- requests:
- cpu: 500m
- memory: 512Mi
- limits:
- memory: 4Gi
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - weight: 100
- podAffinityTerm:
- labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - machine-learning
- topologyKey: "kubernetes.io/hostname"
+ persistence:
+ ext-albena-rw:
+ enabled: true
+ type: persistentVolumeClaim
+ existingClaim: immich-ext-albena-pvc
+ globalMounts:
+ - path: /external-albena-rw
+ ext-paul-rw:
+ enabled: true
+ type: persistentVolumeClaim
+ existingClaim: immich-ext-paul-pvc
+ globalMounts:
+ - path: /external-paul-rw
+ ext-videos-rw:
+ enabled: true
+ type: persistentVolumeClaim
+ existingClaim: immich-ext-videos-rw-pvc
+ globalMounts:
+ - path: /external-videos-rw
+ ext-videos-ro:
+ enabled: true
+ type: persistentVolumeClaim
+ existingClaim: immich-ext-videos-ro-pvc
+ globalMounts:
+ - path: /external-videos-ro
+ readOnly: true
ingress:
main:
enabled: true
@@ -55,47 +133,3 @@ server:
service:
identifier: main
port: 2283
-
-# Machine Learning component configuration
-machine-learning:
- enabled: true
- resources:
- requests:
- cpu: 500m
- memory: 512Mi
- limits:
- memory: 4Gi
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - weight: 100
- podAffinityTerm:
- labelSelector:
- matchExpressions:
- - key: app.kubernetes.io/name
- operator: In
- values:
- - server
- topologyKey: "kubernetes.io/hostname"
- persistence:
- cache:
- enabled: true
- type: persistentVolumeClaim
- size: 10Gi
- storageClass: ""
- existingClaim: "immich-ml-cache-pvc"
-
-# Global controller settings for main app
-controllers:
- main:
- containers:
- main:
- env:
- DB_HOSTNAME: immich-postgres
- DB_DATABASE_NAME: immich
- DB_USERNAME: immich
- DB_PASSWORD:
- valueFrom:
- secretKeyRef:
- name: immich-db-secret
- key: password