apiVersion: apps/v1 kind: StatefulSet metadata: name: redis namespace: luncher spec: serviceName: redis replicas: 1 selector: matchLabels: app: redis template: metadata: labels: app: redis spec: containers: - name: redis # Redis Stack je nutný — aplikace používá JSON.GET / JSON.SET (modul RedisJSON) image: redis/redis-stack-server:7.2.0-v14 ports: - containerPort: 6379 resources: requests: cpu: 100m memory: 128Mi limits: cpu: 500m memory: 512Mi volumeMounts: - name: data mountPath: /data readinessProbe: exec: command: ["redis-cli", "ping"] initialDelaySeconds: 5 periodSeconds: 5 livenessProbe: exec: command: ["redis-cli", "ping"] initialDelaySeconds: 10 periodSeconds: 10 volumeClaimTemplates: - metadata: name: data spec: accessModes: ["ReadWriteOnce"] resources: requests: storage: 1Gi