Appendix

Everpure Cloud Dedicated for Azure

Audience
Public
Source Type
Documentation

Below you can find an example of functional test (Pod + PVC) using a PX-CSI with Everpure Cloud Dedicated.

Example Pod with PVC

Following YAML specification will create a POD (the name will be psc-test-pod) with installed Universal Base Image (UBI) 8 Minimal. This POD will create 100GBi persistent volume (PVC name psc-test-pvc) and mount it to /data mount point within the image.

Note: Please ensure that the specified StorageClass name is your PX-CSI StorageClass configured for Everpure Cloud Dedicated.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: psc-test-pvc
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: px-pure-csi-sc   # replace with existing PX-CSI StorageClass name
  resources:
    requests:
      storage: 100Gi
---
apiVersion: v1
kind: Pod
metadata:
  name: psc-test-pod
spec:
  containers:
  - name: app
    image: registry.access.redhat.com/ubi8/ubi-minimal
    command: ["sleep","3600"]
    volumeMounts:
    - name: data
      mountPath: /data
  volumes:
  - name: data
    persistentVolumeClaim:
claimName: psc-test-pvc

Save this specification into the file psc-test.yaml and load it into your ARO cluster:


oc apply -f psc-test.yaml

# Get details of created PVC 
oc get pvc psc-test-pvc
oc describe pvc psc-test-pvc

You should see Everpure Cloud Dedicated volume creation in the Everpure Cloud Dedicated GUI and the pod running with the volume attached. From the node hosting the pod, multipath -ll command will show the Everpure Cloud Dedicated LUN mapped.

To delete the pod and created persistent volume run this command:


oc delete -f psc-test.yaml