apiVersion: pingcap.com/v1alpha1
kind: DMCluster
metadata:
  labels:
    app.kubernetes.io/managed-by: test-infra
    # https://docs.pingcap.com/tidb-in-kubernetes/dev/deploy-multiple-tidb-operator
    user: test-infra
spec:
  version: v2.0.3
  pvReclaimPolicy: Delete
  discovery: {}
  timezone: UTC
  annotations:
    # annotate managed by test-infra for fluent-bit log scraping
    app.kubernetes.io/managed-by: test-infra
  # tolerate test-infra dedicated nodes
  tolerations:
  - effect: NoSchedule
    key: test-infra
    operator: Equal
    value: dedicated
  master:
    baseImage: pingcap/dm
    replicas: 1
    # if storageClassName is not set, the default Storage Class of the Kubernetes cluster will be used
    # storageClassName: local-storage
    storageSize: "1Gi"
    requests: {}
    config:
      # since tidb-operator hasn't support to mount a PV on DMCluster master, we have to write log with data volume now.
      log-file: "/var/lib/dm-master/log/dm-master.log"
  worker:
    baseImage: pingcap/dm
    replicas: 1
    # if storageClassName is not set, the default Storage Class of the Kubernetes cluster will be used
    # storageClassName: local-storage
    storageSize: "1Gi"
    requests: {}
    config:
      log-file: "/var/lib/dm-worker/log/dm-worker.log"
