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
- From the navigation menu, click Platform > Storage.
- Select PersistentVolumeClaim.
- Click Create PersistentVolumeClaim.
-
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.
- Click Create.
Creating PersistentVolumeClaims by using the "Create resource" window
- From the dashboard, click Create resource.
- 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
.
- 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.