All Products
Search
Document Center

Container Service for Kubernetes:[Deprecated] Use a PVC

Last Updated:Sep 04, 2023

In the Container Service for Kubernetes (ACK) console, you can create an application from an image or a template. When you create the application, you can specify a persistent volume claim (PVC) that the application uses to request physical storage. In this example, an application is created from an image. You can also create an application from a template and specify a PVC in the template. For more information, see Disk volume overview.

Prerequisites

  • An ACK Serverless cluster is created. For more information, see ACK Serverless quick start.

  • A PVC is created. In this example, a PVC named pvc-disk is created based on cloud storage. For more information, see Create a PVC.

Procedure

  1. Log on to the ACK console.

  2. In the left-side navigation pane of the ACK console, click Clusters.

  3. On the Clusters page, find the cluster that you want to manage and click the name of the cluster or click Details in the Actions column. The details page of the cluster appears.

  4. In the left-side navigation pane of the details page, choose Workloads > Deployments.

  5. On the Deployments, click Create from Image.

  6. On the Basic Information wizard page, configure the basic settings.

    For more information, see Configure basic settings.

    Basic settings
  7. On the Container wizard page, select an image and configure a data volume based on cloud storage. Cloud disks, NAS file systems, and Object Storage Service (OSS) buckets can be specified as cloud storage. In this example, select the pvc-disk PVC and click Next. For more information, see Configure the containers.
  8. On the Advanced wizard page, create a service for the test-nginx application and click Create.
  9. After the application is created, you are redirected to the Creation Task Submitted page. You can click View Details to view application details.

    The Basic Information page of the newly created test-nginx application appears by default.

  10. On the Pods tab, find the pod to which the application belongs and click View Details.
  11. You are redirected to the Overview page of the pod. Click the Volumes tab. Verify that the pod is associated with the pvc-disk PVC.