edit-icon download-icon

How to deploy services in an orchestration template to each node of a cluster?

Last Updated: May 21, 2018

You can use the extension label global, which is provided by Alibaba Cloud Container Service, in the Compose V1/V2 orchestration template to deploy services in the orchestration template to each node of a cluster.

Extension label global

You can use the extension capability label global, which is provided by Alibaba Cloud Container Service, to set the service as a global service.

If a service is set as aliyun.global: true, this service is deployed to each node of the cluster. A container is automatically deployed to nodes that are newly added to the cluster.

Note: For more information on the global label, see Label description.

Example:

  1. monitor:
  2. image: sample
  3. labels:
  4. aliyun.global: true
Thank you! We've received your feedback.