--- apiVersion: apps/v1 kind: Deployment metadata: name: jellyfin-redis namespace: jellyfin spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: jellyfin-redis template: metadata: labels: app: jellyfin-redis spec: restartPolicy: Always containers: - name: redis image: redis:7-alpine imagePullPolicy: IfNotPresent command: - redis-server - --save - "20" - "1" ports: - name: redis containerPort: 6379 protocol: TCP livenessProbe: exec: command: - redis-cli - ping initialDelaySeconds: 30 periodSeconds: 30 timeoutSeconds: 5 failureThreshold: 3 readinessProbe: exec: command: - redis-cli - ping initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 resources: requests: cpu: 50m memory: 128Mi limits: cpu: 500m memory: 512Mi volumeMounts: - name: data mountPath: /data volumes: - name: data persistentVolumeClaim: claimName: jellyfin-redis-data