zh-translation:content/zh/docs/ops/diagnostic-tools/controlz/index.md (#9424)

* zh-translation:content/zh/docs/ops/diagnostic-tools/controlz/index.md

* zh-translation:content/zh/docs/ops/diagnostic-tools/controlz/index.md
This commit is contained in:
mrshengzyzy 2021-03-30 19:41:19 +08:00 committed by GitHub
parent 73bf189c4f
commit 486cfaf846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -1,6 +1,6 @@
---
title: 组件自检
description: 介绍如何使用 ControlZ 深入了解各个运行组件。
description: 介绍如何使用 ControlZ 深入了解正在运行的 istiod 组件。
weight: 60
keywords: [ops]
aliases:
@ -10,24 +10,23 @@ owner: istio/wg-user-experience-maintainers
test: no
---
Istio 组件使用灵活的自检框架Introspection构建该框架使查看和调整正在运行组件的内部状态变得容易。
组件开启一个端口,可以从 Web 浏览器使用该端口获取组件状态的交互式视图,或者外部工具通过 REST 接口进行访问和控制。
Istiod 构建了一个灵活的自检框架,称为 ControlZ它使得检查和操作 istiod 实例的内部状态变得很容易。
Istiod 会开启一个端口供 Web 浏览器以交互式视图的方式展示组件状态,或者让外部工具通过 REST 接口进行访问和控制。
MixerPilot 和 Galley 均实现了 ControlZ 功能。当这些组件启动时将打印一条日志,指示要与 ControlZ 进行交互的 IP 地址和端口
当 Istiod 启动时,会记录一条消息,指示要连接到的 IP 地址和端口以便与 ControlZ 交互
{{< text plain >}}
2018-07-26T23:28:48.889370Z info ControlZ available at 100.76.122.230:9876
2020-08-04T23:28:48.889370Z info ControlZ available at 100.76.122.230:9876
{{< /text >}}
这是 ControlZ 界面的示例:
{{< image width="80%" link="./ctrlz.png" caption="ControlZ User Interface" >}}
{{< image width="90%" link="./ctrlz.png" caption="ControlZ User Interface" >}}
要访问已部署组件 (例如 Mixer、Galley、Pilot) 的 ControlZ 页面,您可以用端口转发方式将 ControlZ 映射到本地,并通过本地浏览器进行访问:
要访问 istiod 的 ControlZ 页面,您可以转发 ControlZ 端点(endpoint),并通过本地浏览器进行访问:
{{< text bash >}}
$ istioctl dashboard controlz <podname>
$ istioctl dashboard controlz deployment/istiod.istio-system
{{< /text >}}
这会将组件的 ControlZ 页面重定向到 `http://localhost:9876` 进行远程访问。
这会将 ControlZ 页面重定向到 `http://localhost:9876` 以便能够通过远程访问。