Skip to content

Commit

Permalink
build: update the securityContext of direct mount container
Browse files Browse the repository at this point in the history
update securityContext to runAsUser: 0
so container can run as a root user

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit bc355c6)
  • Loading branch information
parth-gr authored and travisn committed Dec 14, 2021
1 parent dbe0346 commit 2a891a8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions deploy/examples/direct-mount.yaml
Expand Up @@ -18,15 +18,9 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: rook-direct-mount
<<<<<<< HEAD
image: rook/ceph:v1.8.0
command: ["/tini"]
args: ["-g", "--", "/usr/local/bin/toolbox.sh"]
=======
image: rook/ceph:master
command: ["/bin/bash"]
args: ["-m", "-c", "/usr/local/bin/toolbox.sh"]
>>>>>>> bd3e558c2 (build: updating tini init command in direct mount toolbox)
imagePullPolicy: IfNotPresent
tty: true
env:
Expand All @@ -42,6 +36,7 @@ spec:
key: ceph-secret
securityContext:
privileged: true
runAsUser: 0
volumeMounts:
- mountPath: /dev
name: dev
Expand Down

0 comments on commit 2a891a8

Please sign in to comment.