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