To simplify the deployment of Rook, both the operator and cluster crd are now created in the same namespace in the examples. By default the operator will only manage a cluster crd in the same namespace instead of watching for clusters in all namespaces. To manage a cluster in another namespace, the roles in latter half of operator-common.yaml need to point to the new namespace and the operator env var ROOK_CURRENT_NAMESPACE_ONLY should be set to false. Signed-off-by: travisn <tnielsen@redhat.com>
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
kind: SecurityContextConstraints
|
|
# older versions of openshift have "apiVersion: v1"
|
|
apiVersion: security.openshift.io/v1
|
|
metadata:
|
|
name: rook-ceph
|
|
allowPrivilegedContainer: true
|
|
allowHostNetwork: true
|
|
allowHostDirVolumePlugin: true
|
|
priority:
|
|
allowedCapabilities: []
|
|
allowHostPorts: true
|
|
allowHostPID: true
|
|
allowHostIPC: true
|
|
readOnlyRootFilesystem: false
|
|
requiredDropCapabilities: []
|
|
defaultAddCapabilities: []
|
|
runAsUser:
|
|
type: RunAsAny
|
|
seLinuxContext:
|
|
type: MustRunAs
|
|
fsGroup:
|
|
type: MustRunAs
|
|
supplementalGroups:
|
|
type: RunAsAny
|
|
allowedFlexVolumes:
|
|
- driver: "ceph.rook.io/rook"
|
|
- driver: "ceph.rook.io/rook-ceph"
|
|
volumes:
|
|
- configMap
|
|
- downwardAPI
|
|
- emptyDir
|
|
- flexVolume
|
|
- hostPath
|
|
- persistentVolumeClaim
|
|
- projected
|
|
- secret
|
|
users:
|
|
# A user needs to be added for each rook service account.
|
|
# This assumes running in the default sample "rook-ceph" namespace.
|
|
# If other namespaces or service accounts are configured, they need to be updated here.
|
|
- system:serviceaccount:rook-ceph:rook-ceph-system
|
|
- system:serviceaccount:rook-ceph:default
|
|
- system:serviceaccount:rook-ceph:rook-ceph-mgr
|
|
- system:serviceaccount:rook-ceph:rook-ceph-osd
|