mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
translate kubeedge
Signed-off-by: zhuxiujuan28 <562873187@qq.com>
This commit is contained in:
parent
ab334d0262
commit
e5737379f9
|
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
title: "添加边缘节点"
|
||||
keywords: "Kubernetes, {ks_product}, 集群管理, 节点, 添加边缘节点"
|
||||
description: "介绍如何添加边缘节点。"
|
||||
title: "Add Edge Nodes"
|
||||
keywords: "Kubernetes, {ks_product-en}, cluster management, nodes, add edge node"
|
||||
description: "Learn how to add an edge node."
|
||||
weight: 01
|
||||
---
|
||||
|
||||
:ks_permission: **节点管理**
|
||||
:ks_navigation: **节点 > 边缘节点**
|
||||
:ks_permission: **Node Management**
|
||||
:ks_navigation: **Nodes > Edge Nodes**
|
||||
|
||||
本节介绍如何添加边缘节点。
|
||||
This section describes how to add an edge node.
|
||||
|
||||
|
||||
== Prerequisites
|
||||
|
|
@ -16,20 +16,20 @@ weight: 01
|
|||
* {empty}
|
||||
include::../../../_custom-en/clusterManagement/clusterManagement-prer-requiredPermission_new.adoc[]
|
||||
|
||||
* {ks_product_right}平台需要安装并启用 **KubeEdge** 扩展组件。
|
||||
* **KubeEdge** should have been installed and enabled.
|
||||
|
||||
* 待添加的边缘节点需要能够访问{ks_product_both}集群主节点的 **30000**、**30001**、**30002**、**30004** 端口。
|
||||
* The edge node to be added needs to be able to access the **30000**, **30001**, **30002**, **30004** ports of the KubeSphere cluster master node.
|
||||
|
||||
* 待添加的边缘节点已安装 Docker、containerd、CRI-O 或 Virtlet 作为容器运行时。KubeEdge 边缘节点默认使用 containerd 作为运行时。有关更多信息,请参阅 link:https://docs.kubeedge.io/zh/docs/advanced/cri/[KubeEdge 官方文档]。
|
||||
* The edge node has Docker, containerd, CRI-O, or Virtlet installed as the container runtime. KubeEdge use containerd by default as the runtime. For more information, see link:https://kubeedge.io/zh/docs/[KubeEdge Documentation].
|
||||
|
||||
* 已获取待添加的边缘节点的 SSH 登录信息。
|
||||
* The SSH login information of the edge node has been obtained.
|
||||
|
||||
|
||||
== 配置边缘节点
|
||||
== Configure Edge Node
|
||||
|
||||
执行以下步骤在边缘节点上配置 link:https://kubeedge.io/zh/docs/advanced/edgemesh/[EdgeMesh]。
|
||||
Perform the following steps to configure link:https://kubeedge.io/zh/docs/advanced/edgemesh/[EdgeMesh] on the edge node.
|
||||
|
||||
. 执行以下命令编辑 **/etc/nsswitch.conf** 文件:
|
||||
. Run the following command to edit the **/etc/nsswitch.conf** file:
|
||||
+
|
||||
--
|
||||
// Bash
|
||||
|
|
@ -39,17 +39,17 @@ vi /etc/nsswitch.conf
|
|||
----
|
||||
--
|
||||
|
||||
. 在 **/etc/nsswitch.conf** 文件中添加以下内容,然后保存文件:
|
||||
. Add the following content to the **/etc/nsswitch.conf** file and save the file:
|
||||
+
|
||||
--
|
||||
// Bash
|
||||
[,bash]
|
||||
----
|
||||
hosts: dns files mdns4_minimal [NOTFOUND=return]
|
||||
hosts: dns files mdns4_minimal [NOTFOUND=return]
|
||||
----
|
||||
--
|
||||
|
||||
. 执行以下命令在边缘节点上启用 IP 转发:
|
||||
. Run the following command to enable IP forwarding on the edge node:
|
||||
+
|
||||
--
|
||||
// Bash
|
||||
|
|
@ -59,7 +59,7 @@ sudo echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
|
|||
----
|
||||
--
|
||||
|
||||
. 执行以下命令验证配置结果:
|
||||
. Run the following command to verify the configuration result:
|
||||
+
|
||||
--
|
||||
// Bash
|
||||
|
|
@ -68,7 +68,7 @@ sudo echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
|
|||
sudo sysctl -p | grep ip_forward
|
||||
----
|
||||
|
||||
如果显示以下信息,则表明配置成功:
|
||||
If the following information is displayed, the configuration is successful:
|
||||
|
||||
// Bash
|
||||
[,bash]
|
||||
|
|
@ -78,7 +78,7 @@ net.ipv4.ip_forward = 1
|
|||
--
|
||||
|
||||
|
||||
== 添加边缘节点
|
||||
== Add Edge Node
|
||||
|
||||
include::../../../_custom-en/clusterManagement/clusterManagement-oper-openClusterPage.adoc[]
|
||||
|
||||
|
|
@ -88,48 +88,45 @@ include::../../../../_ks_components-en/oper-navigate.adoc[]
|
|||
|
||||
+
|
||||
|
||||
. 在页面右侧点击**添加**。
|
||||
. Click **Add** on the right side of the page.
|
||||
|
||||
. 在**添加边缘节点**对话框,设置边缘节点的参数。
|
||||
. In the **Add Edge Node** dialog, set the parameters for the edge node.
|
||||
+
|
||||
--
|
||||
[%header,cols="1a,4a"]
|
||||
|===
|
||||
|参数 |描述
|
||||
|Parameter |Description
|
||||
|
||||
|名称
|
||||
|边缘节点的名称。系统会自动为边缘节点生成名称,您也可以手动设置边缘节点的名称。名称只能包含小写字母、数字和连字符(-),必须以小写字母或数字开头和结尾,最长 63 个字符。
|
||||
|Name
|
||||
|The name of the edge node. The system will automatically generate a name for the edge node, or you can manually set the name of the edge node. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and can be up to 63 characters long.
|
||||
|
||||
// |内部 IP 地址
|
||||
// |边缘节点在{ks_product_both}集群内部的 IP 地址。边缘节点的内部 IP 地址不能与{ks_product_both}集群现有节点的内部 IP 地址相同。
|
||||
// |Internal IP Address
|
||||
// |The internal IP address of the edge node in the KubeSphere cluster. The internal IP address of the edge node cannot be the same as the internal IP address of the existing nodes in the KubeSphere cluster.
|
||||
|
||||
|添加默认污点
|
||||
|是否为边缘节点添加污点以阻止容器组调度到边缘节点上。
|
||||
|Add Default Taint
|
||||
|Whether to add a taint to the edge node to prevent pods from being scheduled to the edge node.
|
||||
|===
|
||||
--
|
||||
|
||||
. 点击**验证**生成边缘节点配置命令。
|
||||
. Click **Verify** to generate the edge node configuration command.
|
||||
|
||||
. 点击**复制**将边缘节点配置命令复制到剪贴板,然后进行以下修改。
|
||||
. Click **Copy** to copy the edge node configuration command to the clipboard, then make the following modifications.
|
||||
+
|
||||
将边缘节点配置命令中的 10000,10001,10002,10004 端口修改为 cloudcore 服务暴露出来的端口 30000,30001,30002,30004。
|
||||
+
|
||||
image:/images/ks-qkcp/zh/v4.1/kubeedge-port.png[ port,100%]
|
||||
Modify the ports in the edge node configuration command `10000,10001,10002,10004` to the ports exposed by the cloudcore service `30000,30001,30002,30004`.
|
||||
|
||||
|
||||
. 登录边缘节点并执行已修改的命令。
|
||||
. Log in to the edge node and run the modified command.
|
||||
+
|
||||
--
|
||||
// Note
|
||||
include::../../../../_ks_components-en/admonitions/note.adoc[]
|
||||
|
||||
* 请确保边缘节点能够通过 **--cloudcore-ipport** 参数指定的 IP 地址访问{ks_product_both}集群主节点。
|
||||
* Ensure that the edge node can access the KubeSphere cluster master node via the IP address specified by the **--cloudcore-ipport** parameter.
|
||||
|
||||
* 请确保边缘节点能够通过 **--cloudcore-ipport**、**--quicport**、**--certport**、**--tunnelport** 参数指定的端口号分别访问{ks_product_both}集群主节点的 **30000**、**30001**、**30002**、**30004** 端口。
|
||||
* Ensure that the edge node can access the ports of KubeSphere cluster master node - **30000**, **30001**, **30002**, **30004** respectively via the port numbers specified by the **--cloudcore-ipport**, **--quicport**, **--certport**, and **--tunnelport** parameters.
|
||||
|
||||
* 取决于您的网络环境,您可能需要设置防火墙和流量转发规则。
|
||||
* Depending on your network environment, you may need to set firewall and traffic forwarding rules.
|
||||
|
||||
include::../../../../_ks_components-en/admonitions/admonEnd.adoc[]
|
||||
--
|
||||
|
||||
. 刷新{ks_product_left} Web 控制台的**边缘节点**页面。如果添加成功,边缘节点将显示在边缘节点列表。
|
||||
. Refresh the **Edge Nodes** page of the {ks_product-en} web console. If the addition is successful, the edge node will be displayed in the edge node list.
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
title: "查看边缘节点列表"
|
||||
keywords: "Kubernetes, {ks_product}, 集群管理, 边缘节点, 查看边缘节点列表"
|
||||
description: "介绍如何查看边缘节点列表。"
|
||||
title: "View Edge Node List"
|
||||
keywords: "Kubernetes, {ks_product-en}, cluster management, edge nodes, view edge node list"
|
||||
description: "Learn how to view the edge node list."
|
||||
weight: 02
|
||||
---
|
||||
|
||||
:ks_permission: **节点查看**
|
||||
:ks_permission: **Node Viewing**
|
||||
|
||||
|
||||
本节介绍如何查看边缘节点列表。
|
||||
This section describes how to view the edge node list.
|
||||
|
||||
|
||||
== Prerequisites
|
||||
|
|
@ -16,50 +16,48 @@ weight: 02
|
|||
* {empty}
|
||||
include::../../../_custom-en/clusterManagement/clusterManagement-prer-requiredPermission_new.adoc[]
|
||||
|
||||
* {ks_product_right}平台需要安装并启用 **KubeEdge** 扩展组件。
|
||||
* **KubeEdge** should have been installed and enabled.
|
||||
|
||||
== Steps
|
||||
|
||||
include::../../../_custom-en/clusterManagement/clusterManagement-oper-openClusterPage.adoc[]
|
||||
|
||||
. 在左侧导航栏选择**节点 > 边缘节点**打开节点列表。
|
||||
. Select **Nodes > Edge Nodes** in the left navigation pane to open the node list.
|
||||
|
||||
+
|
||||
|
||||
====
|
||||
* 节点列表提供以下信息:
|
||||
* The node list provides the following information:
|
||||
+
|
||||
--
|
||||
[%header,cols="1a,4a"]
|
||||
|===
|
||||
|参数 |描述
|
||||
|Parameter |Description
|
||||
|
||||
|名称
|
||||
|各节点的主机名称和在子网内部的 IP 地址。
|
||||
// 各节点的主机名称由用户安装集群时在安装配置文件 **config-sample.yaml** 中设置。
|
||||
|Name
|
||||
|The host name and internal IP address of each node in the subnet.
|
||||
|
||||
|状态
|
||||
|Status
|
||||
|
|
||||
include::../../../_custom-en/clusterManagement/nodes/nodes-para-nodeStatus_new.adoc[]
|
||||
|
||||
ifeval::["{file_output_type}" == "html"]
|
||||
如果节点上存在污点,**状态**列还将显示节点上污点的数量。将光标悬停在污点数字上查看污点的具体信息。有关更多信息,请参阅link:../../../07-cluster-management/03-nodes/05-edit-node-taints/[设置节点污点]。
|
||||
If there are taints on the node, the **Status** column will also display the number of taints on the node. Hover the cursor over the taint number to view the specific information of the taint. For more information, see link:../../../07-cluster-management/03-nodes/05-edit-node-taints/[Set Node Taints].
|
||||
endif::[]
|
||||
|
||||
ifeval::["{file_output_type}" == "pdf"]
|
||||
如果节点上存在污点,**状态**列还将显示节点上污点的数量。将光标悬停在污点数字上查看污点的具体信息。有关更多信息,请参阅《{ks_product_right}集群管理指南》的“节点”章节。
|
||||
If there are taints on the node, the **Status** column will also display the number of taints on the node. Hover the cursor over the taint number to view the specific information of the taint. For more information, see the "Nodes" section in the {ks_product-en} Cluster Management Guide.
|
||||
endif::[]
|
||||
|
||||
|角色
|
||||
|Role
|
||||
|
|
||||
各节点在集群中的角色,取值为**代理/边缘节点**。
|
||||
|
||||
The role of each node in the cluster, which can be **Agent/Edge Node**.
|
||||
|===
|
||||
--
|
||||
|
||||
* 在列表上方点击搜索框并设置搜索条件,可按名称、状态或角色搜索节点。
|
||||
* Click the search box above the list to search for nodes by name, status, or role.
|
||||
|
||||
include::../../../../_ks_components-en/oper-refreshListData.adoc[]
|
||||
|
||||
include::../../../../_ks_components-en/oper-customizeColumns.adoc[]
|
||||
====
|
||||
====
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
title: "删除边缘节点"
|
||||
keywords: "Kubernetes, {ks_product}, 集群管理, 节点, 删除边缘节点"
|
||||
description: "介绍如何删除边缘节点。"
|
||||
title: "Delete Edge Nodes"
|
||||
keywords: "Kubernetes, {ks_product-en}, cluster management, nodes, delete edge node"
|
||||
description: "Learn how to delete an edge node."
|
||||
weight: 03
|
||||
---
|
||||
|
||||
:ks_permission: **节点管理**
|
||||
:ks_menu: **节点 > 边缘节点**
|
||||
:ks_permission: **Node Management**
|
||||
:ks_menu: **Nodes > Edge Nodes**
|
||||
|
||||
本节介绍如何删除边缘节点。
|
||||
This section describes how to delete an edge node.
|
||||
|
||||
|
||||
== Prerequisites
|
||||
|
|
@ -16,20 +16,20 @@ weight: 03
|
|||
* {empty}
|
||||
include::../../../_custom-en/clusterManagement/clusterManagement-prer-requiredPermission_new.adoc[]
|
||||
|
||||
* {ks_product_right}平台需要安装并启用 **KubeEdge** 扩展组件。
|
||||
* **KubeEdge** should have been installed and enabled.
|
||||
|
||||
* 已获取{ks_product_both}集群主节点和边缘节点的 SSH 登录信息。
|
||||
* The SSH login information for the KubeSphere cluster master node and the edge node has been obtained.
|
||||
|
||||
|
||||
== Steps
|
||||
|
||||
. 登录边缘节点并执行以下命令删除边缘节点中的配置:
|
||||
. Log in to the edge node and run the following commands to remove the configuration in the edge node:
|
||||
+
|
||||
--
|
||||
// Bash
|
||||
[,bash]
|
||||
----
|
||||
./keadm reset
|
||||
./keadm reset
|
||||
----
|
||||
|
||||
// Bash
|
||||
|
|
@ -45,7 +45,7 @@ rm -rf /var/lib/kubeedge /var/lib/edged /etc/kubeedge/ca /etc/kubeedge/certs
|
|||
----
|
||||
--
|
||||
|
||||
. 登录{ks_product_both}集群主节点并执行以下命令删除边缘节点。
|
||||
. Log in to the cluster master node and run the following command to delete the edge node.
|
||||
+
|
||||
--
|
||||
// Bash
|
||||
|
|
@ -55,7 +55,7 @@ kubectl delete node <edgenode-name>
|
|||
----
|
||||
--
|
||||
|
||||
. 在{ks_product_both}集群主节点执行以下命令检查当前的节点:
|
||||
. Run the following command on the cluster master node to check the current nodes:
|
||||
+
|
||||
--
|
||||
// Bash
|
||||
|
|
@ -64,5 +64,5 @@ kubectl delete node <edgenode-name>
|
|||
kubectl get node
|
||||
----
|
||||
|
||||
如果命令回显中没有显示需要删除的边缘节点,则表明边缘节点删除成功。
|
||||
--
|
||||
If the command output does not show the edge node, the edge node has been successfully deleted.
|
||||
--
|
||||
|
|
@ -24,5 +24,5 @@ Some operations for edge nodes and cluster nodes are the same, such as viewing n
|
|||
endif::[]
|
||||
|
||||
ifeval::["{file_output_type}" == "pdf"]
|
||||
Some operations for edge nodes and cluster nodes are the same, such as viewing node details, preventing and allowing pod scheduling, editing node taints and labels. For more information, see the "Nodes" section in the {ks_product_right} Cluster Management Guide.
|
||||
Some operations for edge nodes and cluster nodes are the same, such as viewing node details, preventing and allowing pod scheduling, editing node taints and labels. For more information, see the "Nodes" section in the {ks_product-en} Cluster Management Guide.
|
||||
endif::[]
|
||||
|
|
@ -23,7 +23,7 @@ include::../../../_custom/clusterManagement/clusterManagement-prer-requiredPermi
|
|||
|
||||
* 待添加的边缘节点需要能够访问{ks_product_both}集群主节点的 **30000**、**30001**、**30002**、**30004** 端口。
|
||||
|
||||
* 待添加的边缘节点已安装 Docker、containerd、CRI-O 或 Virtlet 作为容器运行时。KubeEdge 边缘节点默认使用 containerd 作为运行时。有关更多信息,请参阅 link:https://docs.kubeedge.io/zh/docs/advanced/cri/[KubeEdge 官方文档]。
|
||||
* 待添加的边缘节点已安装 Docker、containerd、CRI-O 或 Virtlet 作为容器运行时。KubeEdge 边缘节点默认使用 containerd 作为运行时。有关更多信息,请参阅 link:https://docs.kubeedge.io/zh/docs/[KubeEdge 官方文档]。
|
||||
|
||||
* 已获取待添加的边缘节点的 SSH 登录信息。
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue