Skip to content

Commit

Permalink
zh: fix tidb storageVolumes doc (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechengwei authored Dec 10, 2020
1 parent aa9570f commit 6ff7874
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zh/configure-a-tidb-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ TiDB Operator 支持为 PD、TiDB、TiKV 挂载多块 PV,可以用于不同用
config:
log:
file:
name: /var/log/tidb
name: /var/log/tidblog
level: "warn"
storageVolumes:
- name: log
storageSize: "2Gi"
mountPath: "/var/log/tidb"
mountPath: "/var/log/tidblog"
tikv:
baseImage: pingcap/tikv
replicas: 1
Expand All @@ -146,6 +146,10 @@ TiDB Operator 支持为 PD、TiDB、TiKV 挂载多块 PV,可以用于不同用
mountPath: "/data_sbj/titan/data"
```
> **注意:**
>
> TiDB Operator 默认会使用一些挂载路径,比如会为 TiDB Pod 挂载 `EmptyDir` 到 `/var/log/tidb` 目录。在配置 `storageVolumes` 的时候要避免配置重复的 `mountPath`。

### mountClusterClientSecret

PD 和 TiKV 支持配置 `mountClusterClientSecret`,建议配置 `spec.pd.mountClusterClientSecret: true` 和 `spec.tikv.mountClusterClientSecret: true`,这样 TiDB Operator 会自动将 `${cluster_name}-cluster-client-secret` 证书挂载到 PD 和 TiKV 容器,方便[使用 `pd-ctl` 和 `tikv-ctl`](enable-tls-between-components.md#第三步配置-pd-ctltikv-ctl-连接集群)。
Expand Down

0 comments on commit 6ff7874

Please sign in to comment.