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
to view installed operators.
- The default storage classes provided by Fusion Data Foundation are available. From OpenShift Web Console,
go to
to view default storage classes.
Procedure
- Create a Persistent Volume Claim (PVC) for the application to use.
- From OpenShift Web Console, go to
.
- Set the Project for the application pod.
- Click Create Persistent Volume Claim.
- Specify a Storage Class provided by Fusion Data Foundation.
- Specify the PVC Name, for example,
myclaim
.
- Select the required Access Mode.
Note: The Shared access
(RWX)
Access Mode is not supported by IBM FlashSystem storage systems.
- For RADOS Block Device (RBD), if the Access Mode is ReadWriteOnce
(
RWO
), select the required Volume mode. The default volume
mode is Filesystem
.
- Specify a Size as per application requirement.
- Click Create and wait until the PVC is in Bound
status.
- Configure a new or existing application pod to use the new PVC.
- For a new application pod, perform the following steps:
-
- Go to
.
- Create a new application pod.
- 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:
-
- Go to .
- Search for the required deployment config associated with the application pod and click on its
-
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
- Click Save.
- Verify that the new configuration is being used.
- Go to
.
- Set the Project for the application pod.
- Verify that the application pod appears in a Running
state.
- Click the application pod name to view pod details.
- From Volumes verify that the volume has a
Type that matches your new Persistent Volume Claim. For example,
myclaim
.