mirror of
https://github.com/kubesphere/website.git
synced 2025-12-29 07:12:48 +00:00
Web Kubectl translated.
Signed-off-by: Felixnoo <felixliu@yunify.com>
This commit is contained in:
parent
d2c628639b
commit
332c2cb7d3
|
|
@ -10,7 +10,7 @@ The Kubernetes command-line tool, kubectl, allows you to run commands on Kuberne
|
|||
|
||||
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.
|
||||
|
||||
In this tutorial demonstrates how to use web kubectl to operate on and manage cluster resources.
|
||||
This tutorial demonstrates how to use web kubectl to operate on and manage cluster resources.
|
||||
|
||||
## Use Web Kubectl
|
||||
|
||||
|
|
|
|||
|
|
@ -1,36 +1,36 @@
|
|||
---
|
||||
title: "Web Kubectl"
|
||||
keywords: 'KubeSphere, Kubernetes, kubectl, cli'
|
||||
description: 'Use kubectl from toolbox'
|
||||
description: '使用工具箱中的 Kubectl'
|
||||
linkTitle: "Web Kubectl"
|
||||
weight: 15400
|
||||
---
|
||||
|
||||
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.
|
||||
Kubectl 是 Kubernetes 命令行工具,您可以用它在 Kubernetes 集群上运行命令。Kubectl 可用于部署应用、查看和管理集群资源、查看日志等。
|
||||
|
||||
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.
|
||||
KubeSphere 控制台提供 Web Kubectl,方便用户使用。在默认情况下,当前版本中只有被授予 `platform-admin` 角色的帐户(例如默认帐户 `admin`)才有权限使用 Web Kubectl 进行集群资源操作和管理。
|
||||
|
||||
In this tutorial demonstrates how to use web kubectl to operate on and manage cluster resources.
|
||||
本教程演示了如何使用 Web Kubectl 进行集群资源操作和管理。
|
||||
|
||||
## Use Web Kubectl
|
||||
## 使用 Web Kubectl
|
||||
|
||||
1. Log in KubeSphere with an account granted the `platform-admin` role, hover over the **Toolbox** in the lower right corner and select **Kubectl**.
|
||||
1. 使用被授予 `platform-admin` 角色的帐户登录 KubeSphere,在右下角的**工具箱**图标上悬停,然后在弹出菜单中选择 **Kubectl**。
|
||||
|
||||

|
||||

|
||||
|
||||
2. You can see the kubectl interface as shown in the pop-up window. If you have enabled the multi-cluster feature, you need to select the target cluster first from the drop-down list in the upper right corner. This drop-down list is not visible if the multi-cluster feature is not enabled.
|
||||
2. 您可以在弹出窗口中看到 Kubectl 界面,如下图所示。如果您启用了多集群功能,则需要先在右上角的下拉列表中选择目标集群。如果未启用多集群功能,则该下拉列表不可见。
|
||||
|
||||

|
||||

|
||||
|
||||
3. Enter kubectl commands in the command-line tool to query and manage Kubernetes cluster resources. For example, execute the following command to query the status of all PVCs in the cluster.
|
||||
3. 在命令行工具中输入 Kubectl 命令,查询并管理 Kubernetes 集群资源。例如,执行以下命令查询集群中所有 PVC 的状态。
|
||||
|
||||
```bash
|
||||
kubectl get pvc --all-namespaces
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
4. Use the following syntax to run kubectl commands from your terminal window:
|
||||
4. 在终端窗口中使用以下语法运行 Kubectl 命令:
|
||||
|
||||
```bash
|
||||
kubectl [command] [TYPE] [NAME] [flags]
|
||||
|
|
@ -38,11 +38,11 @@ In this tutorial demonstrates how to use web kubectl to operate on and manage cl
|
|||
|
||||
{{< notice note >}}
|
||||
|
||||
- Where `command`, `TYPE`, `NAME`, and `flags` are:
|
||||
- `command`: Specifies the operation that you want to perform on one or more resources, such as `create`, `get`, `describe` and `delete`.
|
||||
- `TYPE`: Specifies the [resource type](https://kubernetes.io/docs/reference/kubectl/overview/#resource-types). Resource types are case-insensitive and you can specify the singular, plural, or abbreviated forms.
|
||||
- `NAME`: Specifies the name of the resource. Names are case-sensitive. If the name is omitted, details for all resources are displayed, such as `kubectl get pods`.
|
||||
- `flags`: Specifies optional flags. For example, you can use the `-s` or `--server` flags to specify the address and port of the Kubernetes API server.
|
||||
- If you need help, run `kubectl help` from the terminal window or refer to the [Kubernetes kubectl CLI documentation](https://kubernetes.io/docs/reference/kubectl/overview/).
|
||||
- 其中,`command`、`TYPE`、`NAME` 和 `flags` 分别是:
|
||||
- `command`:指定要对一个或多个资源执行的操作,例如 `create`、`get`、`describe` 和 `delete`。
|
||||
- `TYPE`:指定[资源类型](https://kubernetes.io/zh/docs/reference/kubectl/overview/)。资源类型不区分大小写,您可以指定单数、复数或缩写形式。
|
||||
- `NAME`:指定资源的名称。名称区分大小写。如果省略名称,则会显示所有资源的详细信息,例如 `kubectl get pods`。
|
||||
- `flags`:指定可选标志。例如,您可以使用 `-s` 或 `--server` 标志指定 Kubernetes API 服务器的地址和端口。
|
||||
- 如果您需要帮助,请在终端窗口运行 `kubectl help` 或者参考 [Kubernetes Kubectl CLI 文档](https://kubernetes.io/zh/docs/reference/kubectl/overview/)。
|
||||
|
||||
{{</ notice >}}
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 284 KiB |
Loading…
Reference in New Issue