百度智能云

All Product Document

          Cloud Container Engine

          Statefulset Management

          Users can create StatefulSet through forms based on image, or create and modify StatefulSet through the YAML file template provided by Baidu AI Cloud, and conduct control and management to the container group (Pod) and events associated with StatefulSet.

          About StatefullSet

          StatefullSet is designed to solve the problem of stateful services (corresponding to deployments designed for stateless services). Its application scenarios include:

          • Stable persistent storage, i.e. Pod can still access the same persistent data after rescheduling, which is realized based on PVC.
          • Stable network flag, i.e. after Pod is rescheduled, its PodName and HostName remain unchanged. The hostname mode of Pod is: (statefullset name)-(sequence number).
          • Orderly deployment, orderly expansion, that is, Pod is in order. When deploying or expanding, it should be carried out in order according to the defined order (that is, from 0 to N-1, all previous pods must be Running and Ready before the next Pod runs).
          • Orderly shrinkage, orderly deletion (i.e. from N-1 to 0).

          View Stateful Deployment List

          Enter "Product Service > Cloud Container Engine (CCE)",select cluster and click "Workload > Stateful Deployment" in the left navigation bar to enter the stateful deployment page. The contents include:

          • List data: Display the list information of all stateful deployments, and create, delete, modify.

          New Stateful Deployment

          Click "New StatefulSet" in the upper left corner of the, users can choose to create a new StatefulSet through forms or Yaml.

          (1)Create through forms:

          • Fill in the name of the StatefulSet and name space and Pod label;
          • Click the Add Container Configuration button, fill in the container name and image address, and click OK, the creation page displays the added container configuration information;
          • Click Create to confirm the Yaml file generated based on the configuration information and complete the creation.

          (2)Create through Yaml file:

          • Select name space, fill in yaml file, and click OK.
          • Copy: Copy the contents of the current yaml file.
          • Cancel: Return to list page.

          View Stateful Deployment Details

          Click the stateful deployment name in any line of the list page to enter the stateful deployment details page, which includes:

          • Status deployment details: Including basic information, associated container group, associated service and event list.

          Modify Deployment

          On the stateful deployment list page, click "Modify" in the stateful deployment line to modify. After the modification, click "Confirm" to submit.

          Delete Deployment

          On the stateful deployment list page, check the stateful deployment to delete, click "Delete", confirm the information, and then click "OK".

          Note: Currently, only single deletion is supported.

          Previous
          Daemonset Management
          Next
          Job Management