This topic describes the differences in container configurations and labels when you create an application from an image in a cluster of Container Service for Swarm and in a cluster of Container Service for Kubernetes (ACK).
Create an application from an image
To configure a container, you must set start commands (Command and Entrypoint), resource limits (CPU and Memory), and start parameters.
- For more information about the lifecycle configurations of a container, see Use an image to create a stateless application.
- Post Start
- Pre Stop
- For more information about how to configure the basic settings of a container in an ACK cluster, see Use an image to create a stateless application. For the recommended settings, see Recommended Kubernetes cluster configurations to run highly reliable applications.
- Resource Limit
- Required Resources
In Swarm clusters, labels can be used to implement health checks, domain name settings, and logging.
In ACK clusters, labels are only used to identify applications. When you create an application in an ACK cluster, a label named after the application name is automatically generated. This label is not displayed when you create the application from an image. You can configure YAML files to use the label.