Files
homelab/kubernetes/apps/immich/redis.yaml
security-bot ce6e8ba2cb
ci/woodpecker/cron/alert-monitor Pipeline was successful
chore(image-automation): bump redis:7.4.11-alpine
Updates managed by image-automation-controller.
2026-08-20 17:19:40 +00:00

73 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
namespace: immich
labels:
app.kubernetes.io/name: redis
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: redis
template:
metadata:
labels:
app.kubernetes.io/name: redis
spec:
securityContext:
runAsNonRoot: true
runAsUser: 999
fsGroup: 999
seccompProfile:
type: RuntimeDefault
containers:
# Pinned to 7.4-alpine to match the LXC 225 compose exactly.
# Any redis major-version bump is a separate migration.
- name: redis
image: redis:7.4.11-alpine # {"$imagepolicy": "flux-system:redis-immich"}
args:
- redis-server
- --save
- "60"
- "1"
- --loglevel
- warning
ports:
- name: redis
containerPort: 6379
livenessProbe:
tcpSocket:
port: redis
initialDelaySeconds: 10
readinessProbe:
exec:
command: ["redis-cli", "ping"]
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 20m
memory: 64Mi
limits:
memory: 256Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]
---
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: immich
spec:
selector:
app.kubernetes.io/name: redis
ports:
- port: 6379
targetPort: redis