edit-icon download-icon

Specified nodes scheduling

Last Updated: Dec 07, 2017

To deploy an application to specified nodes, we recommend that you use user tags and the constraint keyword to make the deployment configurations.

Note:

  • The deployment constraint only works for newly created containers. It does not work when existing containers change the configurations.
  • After you use a user tag to deploy an application, deleting the user tag does not affect the deployed application, but will affect the next deployment of the application. Proceed with caution when deleting user tags.

Procedure

  1. Add user tags for nodes.

    1. Log on to the Container Service console.

    2. Click Clusters in the left-side navigation pane.

    3. On the Cluster List page, click Manage at the right of the cluster.

      1

    4. Click User Tags in the left-side navigation pane.

    5. Select the nodes that you want to deploy the application and then click Add Tag.

      1

    6. Enter your tag key and tag value, and then click OK to add user tags for the selected nodes.

      1

  2. Create an application by clicking Create with Orchestration Template. Configure the constraint keyword in the template.

    For information about how to create an application, see Create an application.

    1. environment:
    2. - constraint:group==1 #Indicates to deploy the application on all the nodes with the "group:1" tag

Delete a user tag

  1. Log on to the Container Service console.

  2. Click Clusters in the left-side navigation pane.

  3. Click Manage at the right of the cluster.

    1

  4. Click User Tags in the left-side navigation pane.

  5. Select the nodes that you want to delete the user tags and then click Delete Tag.

    1

  6. The confirmation dialog box opens. Click OK.

    1

Thank you! We've received your feedback.