Skip to content

Commit

Permalink
Merge pull request rook#2350 from travisn/openshift-scc-kind
Browse files Browse the repository at this point in the history
Openshift update for the SCC Kind
  • Loading branch information
travisn authored Dec 8, 2018
2 parents f6bcdfa + eb41a9c commit 2ddc7b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Documentation/openshift.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion cluster/examples/kubernetes/ceph/scc.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2ddc7b0

Please sign in to comment.