Persistent storage using Azure

    Additional resources

    Storage classes are used to differentiate and delineate storage levels and usages. By defining a storage class, users can obtain dynamically provisioned persistent volumes.

    Procedure

    1. In the OKD console, click StorageStorage Classes.

    2. In the storage class overview, click Create Storage Class.

    3. Define the desired options on the page that appears.

      1. Enter an optional description.

      2. Select the reclaim policy.

      3. Select from the drop down list.

        1. Enter the storage account type. This corresponds to your Azure storage account SKU tier. Valid options are Premium_LRS, Standard_LRS, StandardSSD_LRS, and .

        2. Enter the kind of account. Valid options are shared, dedicated, and managed.

      4. Enter additional parameters for the storage class as desired.

    4. Click Create to create the storage class.

    Additional resources

    Storage must exist in the underlying infrastructure before it can be mounted as a volume in OKD.

    Procedure

    1. In the OKD console, click StoragePersistent Volume Claims.

    2. In the persistent volume claims overview, click Create Persistent Volume Claim.

    3. Define the desired options on the page that appears.

      1. Select the storage class created previously from the drop-down menu.

      2. Enter a unique name for the storage claim.

      3. Select the access mode. This determines the read and write access for the created storage claim.

      4. Define the size of the storage claim.

    This allows using unformatted Azure volumes as persistent volumes, because OKD formats them before the first use.