Update docs web-kubectl

Signed-off-by: adakisme <serenashe@yunify.com>
This commit is contained in:
adakisme 2021-06-24 10:14:29 +08:00
parent e33dc114a9
commit 95e7aaa36f
8 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ linkTitle: "Web Kubectl"
weight: 15500
---
The Kubernetes command-line tool, kubectl, allows you to run commands on Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, view logs and more.
The Kubernetes command-line tool, kubectl, allows you to run commands on Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, view logs, and more.
KubeSphere provides web kubectl on the console for user convenience. By default, in the current version, only the account granted the `platform-admin` role (such as the default account `admin`) has the permission to use web kubectl for cluster resource operation and management.

View File

@ -16,11 +16,11 @@ KubeSphere 控制台提供 Web Kubectl方便用户使用。在默认情况下
1. 使用被授予 `platform-admin` 角色的帐户登录 KubeSphere在右下角的**工具箱**图标上悬停,然后在弹出菜单中选择 **Kubectl**
![进入 Web Kubectl](/images/docs/zh-cn/toolbox/web-kubectl/web-kubectl-enter.PNG)
![web-kubectl-enter](/images/docs/zh-cn/toolbox/web-kubectl/web-kubectl-enter.png)
2. 您可以在弹出窗口中看到 Kubectl 界面,如下图所示。如果您启用了多集群功能,则需要先在右上角的下拉列表中选择目标集群。如果未启用多集群功能,则该下拉列表不可见。
![Web Kubectl 集群选择](/images/docs/zh-cn/toolbox/web-kubectl/web-kubectl-cluster-select.PNG)
![web-kubectl-cluster-select](/images/docs/zh-cn/toolbox/web-kubectl/web-kubectl-cluster-select.png)
3. 在命令行工具中输入 Kubectl 命令,查询并管理 Kubernetes 集群资源。例如,执行以下命令查询集群中所有 PVC 的状态。
@ -30,6 +30,8 @@ KubeSphere 控制台提供 Web Kubectl方便用户使用。在默认情况下
![Web Kubectl 示例](/images/docs/zh-cn/toolbox/web-kubectl/web-kubectl-example.PNG)
![web-kubectl-example](/images/docs/zh-cn/toolbox/web-kubectl/web-kubectl-example.png)
4. 在终端窗口中使用以下语法运行 Kubectl 命令:
```bash

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 557 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 KiB

After

Width:  |  Height:  |  Size: 573 KiB