Compare commits
6 Commits
3669715137
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c0087dd27d | |||
| 0bda2327a1 | |||
| eb1a666471 | |||
| 92cb69a666 | |||
| d67cac1a9a | |||
|
|
cad3eb24cf |
@@ -4,7 +4,7 @@ metadata:
|
||||
name: immich-machine-learning
|
||||
namespace: immich
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
reloader.stakater.com/auto: 'true'
|
||||
labels:
|
||||
app: immich-machine-learning
|
||||
spec:
|
||||
@@ -52,14 +52,6 @@ spec:
|
||||
name: immich-db-app
|
||||
key: password
|
||||
optional: false
|
||||
# Check this ENVs maybe it works also for other ML models
|
||||
- name: MACHINE_LEARNING_PRELOAD__CLIP
|
||||
value: ViT-B-32__openai
|
||||
- name: MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION
|
||||
value: buffalo_l
|
||||
# May not be needed
|
||||
- name: MACHINE_LEARNING_EXECUTION_PROVIDERS
|
||||
value: "OpenVINOExecutionProvider,CPUExecutionProvider"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: immich
|
||||
@@ -80,12 +72,12 @@ spec:
|
||||
securityContext:
|
||||
privileged: true # for intel quick sync
|
||||
seccompProfile:
|
||||
type: "RuntimeDefault"
|
||||
type: 'RuntimeDefault'
|
||||
volumeMounts:
|
||||
- name: immich-machine-learning
|
||||
mountPath: /cache
|
||||
nodeSelector:
|
||||
intel.feature.node.kubernetes.io/gpu: "true"
|
||||
intel.feature.node.kubernetes.io/gpu: 'true'
|
||||
volumes:
|
||||
- name: immich-machine-learning
|
||||
persistentVolumeClaim:
|
||||
|
||||
@@ -7,9 +7,9 @@ metadata:
|
||||
spec:
|
||||
imageRepositoryRef:
|
||||
name: immich-machine-learning
|
||||
policy:
|
||||
# https://github.com/immich-app/immich/releases
|
||||
semver:
|
||||
range: '2.*.*'
|
||||
# https://github.com/immich-app/immich/releases
|
||||
filterTags:
|
||||
pattern: 'v.*'
|
||||
pattern: '.*-openvino'
|
||||
policy:
|
||||
semver:
|
||||
range: '2.x-0'
|
||||
|
||||
@@ -8,10 +8,3 @@ spec:
|
||||
# https://github.com/immich-app/immich/pkgs/container/immich-machine-learning
|
||||
image: ghcr.io/immich-app/immich-machine-learning
|
||||
interval: 24h
|
||||
exclusionList:
|
||||
- .*openvino
|
||||
- .*cuda
|
||||
- .*armnn
|
||||
- pr*
|
||||
- main
|
||||
- main*
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: csi-driver-nfs
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: csi-driver-nfs
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
# https://artifacthub.io/packages/helm/csi-driver-nfs/csi-driver-nfs/4.12.1
|
||||
chart: csi-driver-nfs
|
||||
reconcileStrategy: ChartVersion
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: csi-driver-nfs
|
||||
namespace: kube-system
|
||||
version: '4.12.1' # fixed version because storage is important
|
||||
interval: 24h
|
||||
timeout: 10m
|
||||
suspend: false
|
||||
values:
|
||||
# https://github.com/kubernetes-csi/csi-driver-nfs/tree/master/charts#latest-chart-configuration
|
||||
# https://github.com/kubernetes-csi/csi-driver-nfs/blob/v4.12.1/charts/v4.12.1/csi-driver-nfs/values.yaml
|
||||
|
||||
controller:
|
||||
resources:
|
||||
csiProvisioner:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 20Mi
|
||||
|
||||
csiResizer:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 20Mi
|
||||
|
||||
csiSnapshotter:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 200Mi
|
||||
|
||||
livenessProbe:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 20Mi
|
||||
|
||||
nfs:
|
||||
limits:
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 20Mi
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: csi-driver-nfs
|
||||
namespace: kube-system
|
||||
spec:
|
||||
interval: 24h
|
||||
url: https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: k8s-nfs-hdd
|
||||
provisioner: nfs.csi.k8s.io
|
||||
parameters:
|
||||
server: unraid.example.internal
|
||||
share: /mnt/user/k8s-nfs-hdd/
|
||||
subDir: ${pvc.metadata.namespace}/${pvc.metadata.name}/
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
allowVolumeExpansion: true
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: k8s-nfs-ssd
|
||||
provisioner: nfs.csi.k8s.io
|
||||
parameters:
|
||||
server: unraid.example.internal
|
||||
share: /mnt/user/k8s-nfs-ssd/
|
||||
subDir: ${pvc.metadata.namespace}/${pvc.metadata.name}/
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
allowVolumeExpansion: true
|
||||
Reference in New Issue
Block a user