Set a CI Node for Dependency Caching
This tutorial demonstrates how you set CI nodes so that KubeSphere schedules tasks of pipelines and S2I/B2I builds to these nodes.
You need an account granted a role including the authorization of Cluster Management. For example, you can log in to the console as directly or create a new role with the authorization and assign it to an account.
If you have enabled the multi-cluster feature 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.
Navigate to Cluster Nodes under Nodes, where you can see existing nodes in the current cluster.
Choose a node from the list to run CI tasks. For example, select
node2
here and click it to go to its detail page. Click More and select Edit Labels.
Click More and select Taint Management.
Click Add Taint and enter a key
node.kubernetes.io/ci
without specifying a value. You can choose orPreferNoSchedule
based on your needs.Click Save. KubeSphere will schedule tasks according to the taint you set. You can go back to work on your DevOps pipeline now.
This tutorial also covers the operation related to node management. For detailed information, see .