You have two methods to deploy services in a template to each node according to orchestration templates used for creating applications.
Compose V1/V2: Use the extension capability label global provided by Alibaba Cloud Container Service.
You can set the service as a global service by using the extension capability label
global provided by Alibaba Cloud Container 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.
| For more information about the
monitor: image: sample labels: aliyun.global: true