Update Doc: Set a CI Node for Dependency Caching
Signed-off-by: Felixnoo <felixliu@yunify.com>
|
|
@ -8,21 +8,19 @@ weight: 11270
|
|||
|
||||
Generally, different dependencies need to be pulled as applications are being built. This may cause some issues such as long pulling time and network instability, further resulting in build failures. To provide your pipeline with a more enabling and stable environment, you can configure a node or a group of nodes specifically for continuous integration (CI). These CI nodes can speed up the building process by using caches.
|
||||
|
||||
This tutorial demonstrates how you set CI nodes so that KubeSphere schedules tasks of pipelines and S2I/B2I builds to these nodes.
|
||||
This tutorial demonstrates how to set CI nodes so that KubeSphere schedules tasks of pipelines and S2I/B2I builds to these nodes.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
You need an account granted a role including the authorization of **Cluster Management**. For example, you can log in to the console as `admin` directly or create a new role with the authorization and assign it to an account.
|
||||
You need an account granted a role including the permission of **Cluster Management**. For example, you can log in to the console as `admin` directly or create a new role with the permission and assign it to an account.
|
||||
|
||||
## Label a CI Node
|
||||
|
||||
1. Click **Platform** in the top-left corner and select **Cluster Management**.
|
||||
|
||||

|
||||
2. If you have enabled the [multi-cluster feature](../../../multicluster-management/) with Member clusters imported, you can select a specific cluster to view its nodes. If you have not enabled the feature, refer to the next step directly.
|
||||
|
||||
2. If you have enabled the [multi-cluster feature](../../../multicluster-management/) with member clusters imported, you can select a specific cluster to view its nodes. If you have not enabled the feature, refer to the next step directly.
|
||||
|
||||
3. Navigate to **Cluster Nodes** under **Nodes**, where you can see existing nodes in the current cluster.
|
||||
3. Navigate to **Cluster Nodes** under **Node Management**, where you can see existing nodes in the current cluster.
|
||||
|
||||

|
||||
|
||||
|
|
@ -30,13 +28,13 @@ You need an account granted a role including the authorization of **Cluster Mana
|
|||
|
||||

|
||||
|
||||
5. In the dialog that appears, click **Add Labels**. Add a new label with key `node-role.kubernetes.io/worker` and value `ci`, and click **Save**.
|
||||
5. In the dialog that appears, you can see a label with the key `node-role.kubernetes.io/worker`. Enter `ci` for its value and click **Save**.
|
||||
|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
The node may already have the key without a value. You can enter the value `ci` directly.
|
||||
You can also click **Add Labels** to add new labels based on your needs.
|
||||
|
||||
{{</ notice >}}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@ weight: 11270
|
|||
|
||||
1. 点击左上角的**平台管理**,然后选择**集群管理**。
|
||||
|
||||

|
||||
|
||||
2. 如果您已经启用[多集群功能](../../../multicluster-management/)并已导入 Member 集群,那么您可以选择一个特定集群以查看其节点。如果尚未启用该功能,请直接参考下一步。
|
||||
|
||||
3. 转到**节点管理**下的**集群节点**,您可以在其中查看当前集群中的现有节点。
|
||||
|
|
@ -30,13 +28,13 @@ weight: 11270
|
|||
|
||||

|
||||
|
||||
5. 在弹出对话框中,点击 **Add 标签**。使用键 `node-role.kubernetes.io/worker` 和值 `ci` 添加新标签,然后点击**保存**。
|
||||
5. 在弹出对话框中,您可以看到一个标签的键是 `node-role.kubernetes.io/worker`。输入 `ci` 作为此标签的值,然后点击**保存**。
|
||||
|
||||

|
||||
|
||||
{{< notice note >}}
|
||||
|
||||
节点可能已经有空值的键,这种情况下您可以直接补充值 `ci`。
|
||||
您也可以点击**添加标签**来按需添加新标签。
|
||||
|
||||
{{</ notice >}}
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 737 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 723 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 275 KiB |
|
Before Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 630 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 554 KiB |