Home > Storage > PowerFlex > White Papers > Red Hat OpenShift 4.14 deployment on Dell PowerFlex > Sample workload on OpenShift cluster
In this example, we are deploying a MongoDB database application. MongoDB is a non-relational document database, and it has a flexible data model that enables you to store unstructured data. The MongoDB database pods uses persistent volumes dynamically provisioned using the PowerFlex CSI driver.
MongoDB sharded database pods are deployed on the OpenShift 4.14 cluster by following the below steps
1. Create namespace in which MongoDB database needs to be deployed.
$ oc create namespace sharded-mongodb
2. Add the bitnami helm repo:
$ helm repo add bitnami https://charts.bitnami.com/bitnami
3. Pull the specific database version to be installed.
$ curl -k -LO https://charts.bitnami.com/bitnami/mongodb-sharded-8.2.5.tgz
4. Run the following Helm installation command to install the database.
$ helm install mongodb-shards ./mongodb-sharded-8.2.5.tgz --namespace sharded-mongodb --set global.storageClass=vxflexos --set podSecurityContext.fsGroup="" --set containerSecurityContext.runAsUser="1001080001" --set podSecurityContext.enabled=false --set architecture=replicaset --set auth.replicaSetKey=root123 --set auth.rootPassword=root123
5. Login to the OpenShift web console URL as pointed in the below figure and verify that the MongoDB sharded cluster is deployed in the specified namespace and all the pods are running.
Figure 17. Mongodb Pods
6. Verify that the pods are consuming the persistent volumes from PowerFlex CSI and its storage class created.
Figure 18. PV from vxflexos storage class of PowerFlex CSI
For more details of MongoDB installation method and helm parameters, refer GitHub.