Skip to content

Commit b0e31e6

Browse files
authored
improve-access-dashboard-base-on-1.6 (#3028)
1 parent 1690854 commit b0e31e6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

en/access-dashboard.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ metadata:
4242
name: basic
4343
spec:
4444
pd:
45-
enableDashboardInternalProxy: true
45+
config: |
46+
[dashboard]
47+
internal-proxy = true
4648
```
4749
4850
In this deployment method, the `service`, `port`, and `HTTP` paths of TiDB Dashboard are as follows:
@@ -197,7 +199,7 @@ spec:
197199

198200
After deploying the `Service`, you can access TiDB Dashboard via <https://{nodeIP}:{nodePort}/dashboard>. By default, `nodePort` is randomly assigned by Kubernetes. You can also specify an available port in the `.yaml` file.
199201

200-
Note that if there is more than one PD `Pod` in the cluster, you need to set `spec.pd.enableDashboardInternalProxy: true` in the `TidbCluster` CR to ensure normal access to TiDB Dashboard.
202+
Note that if there is more than one PD `Pod` in the cluster, you need to set `spec.pd.config.dashboard.internal-proxy: true` in the `TidbCluster` CR to ensure normal access to TiDB Dashboard.
201203

202204
### Access independently deployed TiDB Dashboard
203205

zh/access-dashboard.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ metadata:
3838
name: basic
3939
spec:
4040
pd:
41-
enableDashboardInternalProxy: true
41+
config: |
42+
[dashboard]
43+
internal-proxy = true
4244
```
4345
4446
这种方法部署的 TiDB Dashboard,service、port 和 HTTP 路径如下:
@@ -193,7 +195,7 @@ spec:
193195

194196
当 `Service` 部署完成后,可以通过 `https://{nodeIP}:{nodePort}/dashboard` 访问 TiDB Dashboard, 其中 `nodePort` 默认由 Kubernetes 随机分配,也可以在 yaml 文件中指定一个可用的端口。
195197

196-
需要注意如果 PD Pod 数量超过 1 ,需要在 TidbCluster CR 中设置 `spec.pd.enableDashboardInternalProxy: true` 以保证正常访问 TiDB Dashboard。
198+
需要注意如果 PD Pod 数量超过 1 ,需要在 TidbCluster CR 中设置 `spec.pd.config.dashboard.internal-proxy: true` 以保证正常访问 TiDB Dashboard。
197199

198200
### 访问独立部署的 TiDB Dashboard
199201

0 commit comments

Comments
 (0)