This topic describes the differences in volume and environment variable configurations when you create an application from an image in a Container Service for Swarm cluster and in a Container Service for Kubernetes (ACK) cluster.

Create an application from an image

The interfaces for creating an application from an image in a Swarm cluster and in an ACK cluster are quite different.

Volume

Swarm cluster

You need to specify your cloud or on-premises storage path. Swarm cluster

ACK cluster

You can configure storage media in ACK clusters in the same way as in Swarm clusters, except that ACK clusters use a different method to mount storage media. ACK cluster

You can use on-premises storage or cloud storage.

  • On-premises storage includes host directories, ConfigMaps, Secrets, and temporary directories.
  • Cloud storage includes cloud disks, Apsara File Storage NAS (NAS) file systems, and Object Storage Service (OSS) buckets.

Environment variable

You can configure environment variables in ACK clusters in the same way as in Swarm clusters. You need only to enter a key and a value to define an environment variable. Environment variable