Volume Requests

A volume, in simple terms, refers to a directory existing on a disk or within a container. Typically, the lifespan of a volume is the same as the Pod that encapsulates it. When the Pod ceases to exist, the volume disappears as well.

However, in some cases, it may be necessary to preserve the data on the disk even if the Pod disappears. In such cases, persistent volumes (PVs) are used.

What types of volumes are provided?

  • Regular Volumes: Supports emptyDir and hostPath methods.

  • Persistent Volumes (PVs): Supports Single type (usable only on one node) and Shared type (can be shared across multiple nodes).

What are the advantages of persistent volume management?

Automatic creation of PV and PVC

When users input the minimum required information for a persistent volume, Cocktail Cloud automatically generates related Persistent Volume (PV) and Persistent Volume Claim (PVC) resources and matches the PVC with the corresponding PV.

Ease of volume and volume mount configuration

Developers only need to select the PVC created in the configured Pod to set up volume and volume mounts.

Task List

  • Create volume requests

  • View volume requests

  • Use volumes in containers

1. Create Volume Requests

1.1 Navigate to the volume request creation screen

1) Go to [Application] - [Service Map] - [Volume Requests], then click the "+ Create" button in the top right to move to the volume request creation screen.

1.2 Fill in the information for volume request creation

2. View Volume Requests

2.1 View the list of volume requests

1) Access the volume request screen in the service map to check the list of volume requests created by the user.

2.2 View detailed information on volume requests

1) Click on the "Name" of the volume request you want to check in the volume request list.

2) To view detailed information about the created PVC in YAML format, click the settings button on the top screen, then select "YAML View" from the left checkbox.

2.3 View PV

1) Select the "Volume (PV)" of the volume request you want to check in the volume request list.

2) To view detailed information about the created PV in YAML format, go to the "Settings" tab on the top screen.

3. Use Volumes in Containers

3.1 Navigate to the workload configuration screen

1) Select the workload that will use the volume request, then click the "Settings" tab to go to the detailed workload configuration screen.

3.2 Add Volumes

1) Click the "+ Add" button in the volume section of the workload configuration information.

2) Choose the desired volume type and enter the corresponding volume name.

The volume type field can be Empty Dir, Host Path, Config Map, Secret, Persistent Volume, and additional input information may be required based on the selected volume type.

3) After completing the volume type and volume name, click the "Apply" button to save.

3.3 Configure Volume Mounts

After adding a volume, it needs to be mounted in the workload to be used.

1) Click the "+ Add" button in the volume addition section of the workload configuration information.

2) Select the container and volume to mount, then click the "+ Add" button.

3) Specify the path to mount the volume in the container.

  • The container field and volume selection field can be created if containers and volumes already exist.

  • The container path field is a mandatory input.

4) Click the "Apply" button to create the volume mount.

3.4 Restart the Workload

1) After adding volumes and configuring volume mounts, click the "Save and Start" button at the top right of the workload's detailed configuration screen.

2) You can check that the configured volume and volume request are applied by confirming that the container restarts.

Last updated

ⓒ2023. Acornsoft Corp. All rights reserved.