Create PVCs for OpenShift with FlashArray using the ReadOnlyMany access mode
This guide provides steps for mounting a disk in the ReadOnlyMany (ROX) access mode. The in-tree Portworx driver for Kubernetes on OpenShift does not support creating PVCs with the ReadOnlyMany access mode. To achieve this functionality, follow the steps below:
-
Add a
persistentVolumeClaimsubsection to thevolumessection of your Pod, specifying the following fields and values:-
readOnly: with the
truevalue -
claimName: with the name of the PVC you created in the step above
apiVersion: v1kind: Podmetadata:name: pvpodspec:containers:- name: test-containerimage: gcr.io/google_containers/test-webservervolumeMounts:- name: test-volmountPath: /test-portworx-volumevolumes:- name: test-volpersistentVolumeClaim:claimName: pvcsc001readOnly: true
-