Skip to content

Commit 7ac6b4a

Browse files
authored
improve-access-dashboard-base-on-1.6 (#3028) (#3032)
1 parent 9d3a992 commit 7ac6b4a

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
@@ -41,7 +41,9 @@ metadata:
4141
name: basic
4242
spec:
4343
pd:
44-
enableDashboardInternalProxy: true
44+
config: |
45+
[dashboard]
46+
internal-proxy = true
4547
```
4648
4749
In this deployment method, the `service`, `port`, and `HTTP` paths of TiDB Dashboard are as follows:
@@ -196,7 +198,7 @@ spec:
196198

197199
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.
198200

199-
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.
201+
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.
200202

201203
### Access independently deployed TiDB Dashboard
202204

zh/access-dashboard.md

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

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

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

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

0 commit comments

Comments
 (0)