forked from rook/rook
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #509 from rook/release-1.12
Resync from upstream release-1.12 to downstream release-4.14
- Loading branch information
Showing
28 changed files
with
497 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
deploy/charts/rook-ceph-cluster/templates/securityContextConstraints.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# scc for the Rook and Ceph daemons | ||
# for creating cluster in openshift | ||
{{- if .Capabilities.APIVersions.Has "security.openshift.io/v1" }} | ||
kind: SecurityContextConstraints | ||
apiVersion: security.openshift.io/v1 | ||
metadata: | ||
name: rook-cluster-{{ .Release.Namespace }} | ||
allowPrivilegedContainer: true | ||
allowHostDirVolumePlugin: true | ||
allowHostPID: false | ||
# set to true if running rook with host networking enabled | ||
allowHostNetwork: false | ||
# set to true if running rook with the provider as host | ||
allowHostPorts: false | ||
priority: | ||
allowedCapabilities: ["MKNOD"] | ||
allowHostIPC: true | ||
readOnlyRootFilesystem: false | ||
# drop all default privileges | ||
requiredDropCapabilities: ["All"] | ||
defaultAddCapabilities: [] | ||
runAsUser: | ||
type: RunAsAny | ||
seLinuxContext: | ||
type: MustRunAs | ||
fsGroup: | ||
type: MustRunAs | ||
supplementalGroups: | ||
type: RunAsAny | ||
volumes: | ||
- configMap | ||
- downwardAPI | ||
- emptyDir | ||
- hostPath | ||
- persistentVolumeClaim | ||
- projected | ||
- secret | ||
users: | ||
# A user needs to be added for each rook service account. | ||
- system:serviceaccount:{{ .Release.Namespace }}:default | ||
- system:serviceaccount:{{ .Release.Namespace }}:rook-ceph-mgr | ||
- system:serviceaccount:{{ .Release.Namespace }}:rook-ceph-osd | ||
- system:serviceaccount:{{ .Release.Namespace }}:rook-ceph-rgw | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.