Skip to content

Commit

Permalink
osd: add CAP_MKNOD to PSP
Browse files Browse the repository at this point in the history
This commit adds CAP_MKNOD to PodSecurityPolicy to allow OSD-prepare job
creating pods under PSP-enabled Kubernetes cluster.

Signed-off-by: Yuichiro Ueno <ueno@preferred.jp>
(cherry picked from commit bae6351)
  • Loading branch information
y1r authored and mergify-bot committed Dec 16, 2021
1 parent 7b9c691 commit 0d3462b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/rbac/rbac.yaml
Expand Up @@ -702,6 +702,7 @@ spec:
allowedCapabilities:
# required by CSI
- SYS_ADMIN
- MKNOD
fsGroup:
rule: RunAsAny
# runAsUser, supplementalGroups - Rook needs to run some pods as root
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/rook-ceph/templates/psp.yaml
Expand Up @@ -21,6 +21,7 @@ spec:
allowedCapabilities:
# required by CSI
- SYS_ADMIN
- MKNOD
fsGroup:
rule: RunAsAny
# runAsUser, supplementalGroups - Rook needs to run some pods as root
Expand Down
1 change: 1 addition & 0 deletions deploy/examples/common.yaml
Expand Up @@ -718,6 +718,7 @@ spec:
allowedCapabilities:
# required by CSI
- SYS_ADMIN
- MKNOD
fsGroup:
rule: RunAsAny
# runAsUser, supplementalGroups - Rook needs to run some pods as root
Expand Down

0 comments on commit 0d3462b

Please sign in to comment.