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.

    1. 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.

    2. Navigate to Cluster Nodes under Nodes, where you can see existing nodes in the current cluster.

    3. 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.

    1. Click More and select Taint Management.

      Select CI Node

    2. Click Add Taint and enter a key node.kubernetes.io/ci without specifying a value. You can choose or PreferNoSchedule based on your needs.

    3. Click Save. KubeSphere will schedule tasks according to the taint you set. You can go back to work on your DevOps pipeline now.

      Taint Result

      This tutorial also covers the operation related to node management. For detailed information, see .