Attaching PersistentVolumeClaims to a deployment

Provide storage to an deployment.

Use this task to create new deployments with PersistentVolume that is bound to a PersistentVolumeClaim.

PersistentVolumeClaims can be attached to an deployment only during the initial creation of the deployment.

To view a list of PersistentVolumeClaim, from the navigation menu, click Platform > Storage > PersistentVolumeClaim.

Required user type or access level: Cluster administrator or team administrator

To attach a PersistentVolumeClaim to a deployment:

  1. From the navigation menu, click Workloads > Deployments.
  2. Click Create Deployment.
  3. From the Create Deployment dialog box, select the Volumes tab.
  4. Provide the following information for the volume:
    • A name - provide a name for the volume.
    • A volume - provide the name of the PersistentVolumeClaim that you want to use. This PersistentVolumeClaim must exist, and be in a bound state. For more information about creating a PersistentVolumeClaim, see Creating a PersistentVolumeClaim.
    • A mount path - this mount path is the location that you want to use inside the container.
  5. Enter the required deployment details. For more information about deploying a new deployment, see Creating a deployment.
  6. Click Create. You can check the pod details to verify that the PersistentVolume is mounted.