On the Container Service console, use an image or a template to deploy an application, so that you can use a persistent storage volume claim. In this example, an image is used to create an application.  If you want to use a persistent storage volume claim with the template, see Use Alibaba Cloud cloud disks.

Prerequisite

Procedure

  1. Log on to the Container Service console.
  2. Under Kubernetes, click Application > Deployment in the left-side navigation pane. Enter the Deployment List page and click Create by image in the upper-right corner.


  3. On the Basic Information page, configure the application name, deploy the cluster, and the namespace. Then click Next


  4. On the Application Configuration page, select Image. Then configure the cloud storage type of data volume, cloud disk, NAS, and OSS types are supported. In this example, use the cloud storage volume claim and click Next.


  5. See Create a service to configure the test-nginx application, and click Create.
  6. After the application is created, click Apply > Container Group in the left-side navigation pane. Find the container group to which the application belongs, and click Details.


  7. On the Container Group details page, click Storage to view the container group is properly bound to the PVC disk.