# Default values for redis-sentinel.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

nameOverride: ""
fullnameOverride: ""
framework: other

serviceAccount:
  # Specifies whether a service account should be created
  create: true
  # Annotations to add to the service account
  annotations: {}
  # The name of the service account to use.
  # If not set and create is true, a name is generated using the fullname template
  name: ""

global:
  registry:
    redis:
      replicas: 2
      istio:
        sidecar:
          enabled: false
          resources:
            limits: {}
            requests: {}
      container:
        customConfig:
          - "maxmemory 500m"
        resources: {}
    sentinel:
      replicas: 3
      istio:
        sidecar:
          enabled: true
          resources:
            limits: {}
            requests: {}
      container:
        resources: {}


sentinel:
  podAnnotations: {}
  image:
    repository: redis
    tag: 6.2.6-alpine
  customConfig:
    - "down-after-milliseconds 60000"
    - "failover-timeout 180000"
    - "parallel-syncs 1"
    - "min-replicas-to-write 1"
    - "min-replicas-max-lag 10"
  metrics:
    enabled: true

redis:
  auth:
    secretName: "redis-auth"
  podAnnotations:
    backup.velero.io/backup-volumes: redis-sentinel-data
  image:
    repository: redis
    tag: 6.2.6-alpine
  storage:
    create: true
    size: 2Gi
  metrics:
    enabled: true

monitoring:
  namespace: openshift-monitoring
