This topic compares the health check settings and the auto scaling settings used in a Swarm cluster and those used in a Kubernetes cluster for creating an application through an image.

Create an application by using an image

When you create an application in the Container Service console by using an image, you will see that the Web interfaces are different in a Swarm cluster and a Kubernetes cluster.

Set health checks

Container Service Swarm clusters

Health checks are implemented through labels.

Container Service Kubernetes clusters

If you use an image to create an application, you can set health checks on the Container tab page. You can set a Liveness probe and a Readiness probe.



Set auto scaling

Container Service Swarm clusters

You can set auto scaling according to CPU usage and memory usage.

Container Service Kubernetes clusters

You can set auto scaling according to CPU usage and memory usage by enabling Horizontal Pod Autoscaling (HPA).