百度智能云

All Product Document

          Cloud Container Engine

          Overview

          The characteristics of the container lead to the fact that the container itself is non-persistent. After the container is deleted, the data in the container is also deleted. Based on Baidu AI Cloud storage products, CCE provides container data sharing and persistence solutions, being suitable for many scenarios, such as big data analysis, media, and games.

          PV (PersistentVolume) and PVC (PersistentVolumeClaim) are API resources provided by K8S for abstracting storage details. To create PV and PVC resources in the cluster, users can directly mount Baidu AI Cloud Storage as a storage volume to the container. Without paying attention to the underlying implementation details, it is more convenient to provide a persistent storage solution for the container cluster.

          • PV: The persistent volume, which is usually a piece of storage device in the cluster;
          • PVC: The persistent volume declaration, which is a declaration for requesting storage resources.

          The CCE container engine supports multiple types of storage. Also, it supports K8S static storage volumes and dynamic storage volumes.

          Storage Type

          CCE provides complete support for different storage types based on Baidu AI Cloud storage products CDS, BOS, and CFS:

          Storage Type Description
          Local storage Contains HostPath, EmptyDir, ConfigMap, Secret, and other types
          Cloud Disk Storage (CDS) You can use it directly through volume or PV/PVC statically or dynamically.
          Cloud File Storage (CFS) You can use it directly through volume or PV/PV statically or dynamically.
          Baidu Object Storage (BOS) You use it through PV/PVC. You can use static storage volume only.

          Selection of storage types

          For services with data persistence requirements, it is recommended to directly use cloud storage (CDS, CFS, or BOS). When the local storage is exceptional and cannot be restored, the data in the local disk may also be lost. The following briefly introduces the usage scenarios of different cloud storage types:

          • Cloud Disk Storage (CDS): Pod and CDS have a one-to-one relationship. Multiple Pods cannot be mounted a CDS. CDS provides block-level persistent storage, which is usually used for primary storage devices that need frequent and fine-grained updates (such as file systems, Database, etc.), with the characteristics of high availability, reliability, and performance;
          • Cloud File Storage (CFS): Pod and CFS are in a many-to-one relationship, supporting multiple reads and multiple writes. As a high-availability and -reliability distributed file system, CFS provides a standard NFS file system access protocol and file-sharing capabilities for multiple Pods and supports elastic capacity and performance expansion, being suitable for scenarios such as big data analysis, media processing, and content management;
          • Cloud Object Storage (BOS): Pod and BOS are in a many-to-one relationship, supporting one write and multiple reading. BOS applies to such scenarios as data distribution, data backup, big data analysis, and audio and video file processing.
          Previous
          Configuration Management
          Next
          Use Local Storage