Configuring application pods to use Fusion Data Foundation

Follow the instructions in this section to configure Fusion Data Foundation as storage for an application pod.

Before you begin

Ensure you have the following
  • Administrative access to OpenShift Web Console.
  • Fusion Data Foundation Operator is installed and running in the openshift-storage namespace. From OpenShift Web Console, go to Operators > Installed Operators to view installed operators.
  • The default storage classes provided by Fusion Data Foundation are available. From OpenShift Web Console, go to Storage > StorageClasses to view default storage classes.

Procedure

  1. Create a Persistent Volume Claim (PVC) for the application to use.
    1. From OpenShift Web Console, go to Storage > Persistent Volume Claims.
    2. Set the Project for the application pod.
    3. Click Create Persistent Volume Claim.
      1. Specify a Storage Class provided by Fusion Data Foundation.
      2. Specify the PVC Name, for example, myclaim.
      3. Select the required Access Mode.
        Note: The Shared access (RWX) Access Mode is not supported by IBM FlashSystem storage systems.
      4. For RADOS Block Device (RBD), if the Access Mode is ReadWriteOnce (RWO), select the required Volume mode. The default volume mode is Filesystem.
      5. Specify a Size as per application requirement.
      6. Click Create and wait until the PVC is in Bound status.
  2. Configure a new or existing application pod to use the new PVC.
    For a new application pod, perform the following steps:
    1. Go to Workloads > Pods.
    2. Create a new application pod.
    3. Under the spec: section, add volumes: section to add the new PVC as a volume for the application pod.
      volumes:
        - name: <volume_name>
          persistentVolumeClaim:
            claimName: <pvc_name>
      For example:
      volumes:
        - name: mypd
          persistentVolumeClaim:
            claimName: myclaim
    For an existing application pod, perform the following steps:
    1. Go to Workloads > Deployment Configs.
    2. Search for the required deployment config associated with the application pod and click on its Action Menu > Edit Deployment Config
    3. Under the spec: section, add volumes: section to add the new PVC as a volume for the application pod.
      volumes:
        - name: <volume_name>
          persistentVolumeClaim:
            claimName: <pvc_name>
      For example:
      volumes:
        - name: mypd
          persistentVolumeClaim:
            claimName: myclaim
    4. Click Save.
  3. Verify that the new configuration is being used.
    1. Go to Workloads > Pods.
    2. Set the Project for the application pod.
    3. Verify that the application pod appears in a Running state.
    4. Click the application pod name to view pod details.
    5. From Volumes verify that the volume has a Type that matches your new Persistent Volume Claim. For example, myclaim.