diff --git a/Documentation/openshift.md b/Documentation/openshift.md index b226ee95d..8535ce4fc 100644 --- a/Documentation/openshift.md +++ b/Documentation/openshift.md @@ -20,9 +20,11 @@ To orchestrate the storage platform, Rook requires the following access in the c Before starting the Rook operator or cluster, create the security context constraints needed by the Rook pods. The following yaml is found in `scc.yaml` under `/cluster/examples/kubernetes/ceph`. +**NOTE** Older versions of OpenShift may require `apiVersion: v1`. + ```yaml kind: SecurityContextConstraints -apiVersion: v1 +apiVersion: security.openshift.io/v1 metadata: name: rook-ceph allowPrivilegedContainer: true diff --git a/cluster/examples/kubernetes/ceph/scc.yaml b/cluster/examples/kubernetes/ceph/scc.yaml index 10d6bf281..5ea72e090 100644 --- a/cluster/examples/kubernetes/ceph/scc.yaml +++ b/cluster/examples/kubernetes/ceph/scc.yaml @@ -1,5 +1,6 @@ kind: SecurityContextConstraints -apiVersion: v1 +# older versions of openshift have "apiVersion: v1" +apiVersion: security.openshift.io/v1 metadata: name: rook-ceph allowPrivilegedContainer: true