### 简易 tidb 集群, 各个组件默认配置
---
generateName: testbed-
items:
  - name: tc # 资源对象项名称
    type: TIDB_CLUSTER # 资源对象类型
    spec:
      # 如果使用一个具体的版本, 例如 v5.0.1 而不是 nightly, master 等, 通过设置 IfNotPresent 可以加速创建速度
      imagePullPolicy: IfNotPresent
      version: v5.0.0
      pd:
        replicas: 1
        baseImage: hub.pingcap.net/qa/pd
        # more refer to: https://github.com/tikv/pd/blob/master/conf/config.toml
        # config is string type and toml format, I prefer uses https://www.convertsimple.com/convert-yaml-to-toml/ to transfer yaml to toml
        config: |
          [log]
          level = "info"
      tidb:
        replicas: 1
        baseImage: hub.pingcap.net/qa/tidb
        config: |
          [log]
          # Log level: debug, info, warn, error, fatal.
          level = "info"
      tikv:
        replicas: 1
        baseImage: hub.pingcap.net/qa/tikv
        # more refer to: https://github.com/tikv/tikv/blob/master/etc/config-template.toml
        config: |
          ## Log levels: trace, debug, info, warning, error, critical.
          ## Note that `debug` and `trace` are only available in development builds.
          log-level = "info"
          [storage]
          reserve-space = 0
      tiflash:
        replicas: 1
        baseImage: hub.pingcap.net/qa/tiflash
        # more refer to: https://docs.pingcap.com/zh/tidb/stable/tiflash-configuration#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-tiflashtoml
        # you need at lease uses github.com/pingcap/test-infra/sdk@v0.0.0-20210705141439-f1670c1d3048 or newer version
        config: |
          log-level = "info"
