pingcap / docs-tidb-operator

Documentation for TiDB on Kubernetes in both English and Chinese.
https://docs.pingcap.com/tidb-in-kubernetes
Other
46 stars 118 forks source link

There may be an error with the configuration file yaml #2398

Closed CherryRum closed 1 year ago

CherryRum commented 1 year ago

File: /release-1.4/zh/configure-a-tidb-cluster.md

  pd:
    config: |
      data-dir=/pd/data
      [log.file]
        filename=/pd/log/pd.log
    storageVolumes:
    - name: data
      storageSize: "10Gi"
      mountPath: "/pd/data"
    - name: log
      storageSize: "10Gi"
      mountPath: "/pd/log"

May be

  pd:
    config: |
      data-dir = "/pd/data"
      [log.file]
        filename = "/pd/log/pd.log"
    storageVolumes:
    - name: data
      storageSize: "10Gi"
      mountPath: "/pd/data"
    - name: log
      storageSize: "10Gi"
      mountPath: "/pd/log"
Oreoxmt commented 1 year ago

@CherryRum

@csuzhangxc Could you please confirm if my understanding is correct and whether we should modify this example to keep the style consistent with other examples (TiKV and TiDB) in this document?

csuzhangxc commented 1 year ago
      data-dir=/pd/data
      [log.file]
        filename=/pd/log/pd.log

This block should be TOML format, so we need to fix it. @CherryRum Thanks for your report!