immich added

This commit is contained in:
2025-10-27 09:44:37 +01:00
commit e6f3536e9e
37 changed files with 2670 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImagePolicy
metadata:
name: immich-valkey
namespace: immich
spec:
imageRepositoryRef:
name: immich-valkey
policy:
semver:
range: '8.*.*'

View File

@@ -0,0 +1,16 @@
---
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageRepository
metadata:
name: immich-valkey
namespace: immich
spec:
image: docker.io/valkey/valkey
interval: 24h
exclusionList:
- latest
- main
- unstable*
- alpine*
- trixie
- bookworm

View File

@@ -0,0 +1,75 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: immich-valkey
namespace: immich
annotations:
reloader.stakater.com/auto: 'true'
labels:
app: immich-valkey
spec:
replicas: 1
selector:
matchLabels:
app: immich-valkey
template:
metadata:
labels:
app: immich-valkey
spec:
automountServiceAccountToken: false
# securityContext:
# runAsUser: 10001
# runAsGroup: 10001
# fsGroup: 10001
containers:
- name: immich-valkey
# https://hub.docker.com/r/valkey/valkey/
# https://github.com/valkey-io/valkey/releases
image: docker.io/valkey/valkey:8.1.4 # {"$imagepolicy": "immich:immich-valkey"}
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 1Gi
requests:
memory: 100Mi
cpu: 20m
ports:
- name: redis
containerPort: 6379
protocol: TCP
livenessProbe:
exec:
command:
- sh
- -c
- redis-cli ping || exit 1
failureThreshold: 5
initialDelaySeconds: 20
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 6
readinessProbe:
exec:
command:
- sh
- -c
- redis-cli ping || exit 1
failureThreshold: 5
initialDelaySeconds: 20
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 2
securityContext:
privileged: false
seccompProfile:
type: 'RuntimeDefault'
volumeMounts:
- name: immich-valkey
mountPath: /data/
imagePullSecrets:
- name: registry-dockerhub
volumes:
- name: immich-valkey
emptyDir:
sizeLimit: 1Gi

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: immich-valkey
namespace: immich
labels:
app: immich-valkey
spec:
ports:
- name: redis
port: 6379
targetPort: redis
selector:
app: immich-valkey