---
apiVersion: pingcap.com/v1alpha1
kind: TidbMonitor
metadata:
  labels:
    app.kubernetes.io/managed-by: test-infra
    user: test-infra
spec:
  # tolerate test-infra dedicated nodes
  tolerations:
    - effect: NoSchedule
      key: dedicated
      operator: Equal
      value: test-infra
  prometheus:
    baseImage: registry-mirror.pingcap.net/prom/prometheus
    version: v2.27.1
    service:
      type: NodePort
    requests:
      # Endless uses promQL to measure the health of the tidb cluster, it prefers let the prom request a little cpu to provide a higher qos especially
      # in the situation of high load on nodes
      cpu: 500m
      memory: 1Gi
  grafana:
    baseImage: registry-mirror.pingcap.net/grafana/grafana
    version: 7.5.11
    service:
      type: NodePort
  initializer:
    baseImage: hub.pingcap.net/qa/tidb-monitor-initializer
    version: master
    imagePullPolicy: Always
  reloader:
    # ref: test-infra/hacks/images/multi-arch/Makefile, I build a multi-arch image for tidb-monitor-reloader
    baseImage: hub.pingcap.net/qa/tidb-monitor-reloader
    version: v1.0.1
  imagePullPolicy: IfNotPresent
