Skip to content

Commit

Permalink
Update zh/deploy-tiproxy.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ran-huang authored Jan 25, 2024
1 parent 445bbc0 commit b2500ca
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions zh/deploy-tiproxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ summary: 了解如何在 Kubernetes 上为已有 TiDB 集群部署负载均衡 T

+ 如果开启了[集群 TLS](enable-tls-between-components.md),则跳过这一步;如果没有开启集群 TLS,还需要生成自签名证书,并手动配置 TiDB 的 [`session-token-signing-cert`](https://docs.pingcap.com/zh/tidb/stable/tidb-configuration-file#session-token-signing-cert-从-v640-版本开始引入) 和 [`session-token-signing-key`](https://docs.pingcap.com/zh/tidb/stable/tidb-configuration-file#session-token-signing-key-从-v640-版本开始引入):

```yaml
spec:
tidb:
additionalVolumes:
- name: sessioncert
secret:
secretName: sessioncert-secret
additionalVolumeMounts:
- name: sessioncert
mountPath: /var/session
config: |
session-token-signing-cert = "/var/session/tls.crt"
session-token-signing-key = "/var/session/tls.key"
```
```yaml
spec:
tidb:
additionalVolumes:
- name: sessioncert
secret:
secretName: sessioncert-secret
additionalVolumeMounts:
- name: sessioncert
mountPath: /var/session
config: |
session-token-signing-cert = "/var/session/tls.crt"
session-token-signing-key = "/var/session/tls.key"
```

详见 TiDB 配置文档 [`session-token-signing-key`](https://docs.pingcap.com/zh/tidb/v7.6/tidb-configuration-file#session-token-signing-cert-从-v640-版本开始引入)。

Expand Down

0 comments on commit b2500ca

Please sign in to comment.