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

replicaCount: 1

image:
  repository: pingcap/br
  pullPolicy: IfNotPresent
  tag: "latest"

args:
  # Required: upstream S3 storage URI (from log backup)
  upstreamStorage: ""

  # Optional: downstream S3 storage URI
  downstreamStorage: ""

  # Required: log backup task name (backup CR name)
  taskName: ""

  # Required: PD address (e.g., <cluster>-pd.<namespace>.svc:2379)
  pdAddr: ""

  # Status listen address for metrics and health check
  statusAddr: ":10081"

# TLS settings for cluster client certificates
tls:
  enabled: true
  secretName: "db-cluster-client-secret"
  mountPath: "/tls"
  caFile: "ca.crt"
  certFile: "tls.crt"
  keyFile: "tls.key"

# K8s Service for metrics port
service:
  type: ClusterIP
  port: 10081

# Resources
resources:
  limits:
    memory: "512Mi"
  requests:
    cpu: "100m"
    memory: "128Mi"

nameOverride: ""
fullnameOverride: ""

podAnnotations: 
  prometheus.io/scrape: "true"
  prometheus.io/port:   "10081"
  prometheus.io/path:   "/metrics"

podSecurityContext:
  runAsGroup: 1000
  runAsUser: 1000

securityContext: {}

nodeSelector: {}

tolerations: []

affinity: {}
