Creating a PersistentVolumeClaim

You can create PersistentVolumeClaims to allocate storage to your application.

Use this task to create PersistentVolumeClaims for your application. Before you can create a PersistentVolumeClaims, a PersistentVolume must be available in your cluster. For more information about managing storage, see Storage.

An available PersistentVolume is bound to a PersistentVolumeClaim and can be used by an application. Each PersistentVolume can be bound to a single PersistentVolumeClaim only.

You can create PersistentVolumeClaims either by entering the parameter values in the Create PersistentVolumeClaim dialog box or by pasting a YAML file into the "Create resource" window.

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

Creating PersistentVolumeClaims by using the Create PersistentVolumeClaim dialog box

  1. From the navigation menu, click Platform > Storage.
  2. Select PersistentVolumeClaim.
  3. Click Create PersistentVolumeClaim.
  4. Enter the PersistentVolumeClaim details in the Create PersistentVolumeClaim dialog box.

    To create a PersistentVolumeClaim, the following parameters are required:

    • Name - provide a name for the PersistentVolumeClaim.
    • Storage requests - amount of storage required.
    • Access mode - For volumes that support multiple access modes, you need to specify the required mode.
  5. Click Create.

Creating PersistentVolumeClaims by using the "Create resource" window

  1. From the dashboard, click Create resource.
  2. Copy and paste a YAML or JSON file into the "Create resource" window. For more information about creating a PersistentVolumeClaim by using a YAML file, see https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims Opens in a new tab.
  3. Click Create.

If a PersistentVolumeClaim is successfully created, a new PersistentVolumeClaim is displayed in the PersistentVolumeClaims list. Review the status. The PersistentVolumeClaim must have a status of Bound.