apiVersion: v1 kind: Service metadata: name: redis namespace: atproto spec: selector: app: redis ports: - port: 6379 targetPort: 6379 --- apiVersion: apps/v1 kind: Deployment metadata: name: redis namespace: atproto spec: replicas: 1 selector: matchLabels: app: redis template: metadata: labels: app: redis spec: containers: - name: redis image: redis:alpine ports: - containerPort: 6379 volumeMounts: - name: data mountPath: /data livenessProbe: exec: command: ["redis-cli", "ping"] periodSeconds: 5 readinessProbe: exec: command: ["redis-cli", "ping"] periodSeconds: 5 volumes: - name: data persistentVolumeClaim: claimName: redis-data --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: redis-data namespace: atproto spec: accessModes: ["ReadWriteOnce"] resources: requests: storage: 1Gi