Ceph: Modified toolbox.yaml so that it need not to run privileged

Removed unnecessary voumeMounts and privileged flag from toolbox.yaml file.

Signed-off-by: RAJAT SINGH <rajasing@redhat.com>
This commit is contained in:
RAJAT SINGH committed 2019-12-05 01:57:50 +05:30
1 parent 519b36286c
commit ca3ab62b9d
1 file changed
+4 -19
+4 -19
View File
@@ -28,32 +28,17 @@ spec:
secretKeyRef:
name: rook-ceph-mon
key: admin-secret
securityContext:
privileged: true
volumeMounts:
- mountPath: /dev
name: dev
- mountPath: /sys/bus
name: sysbus
- mountPath: /lib/modules
name: libmodules
- mountPath: /etc/ceph
name: ceph-config
- name: mon-endpoint-volume
mountPath: /etc/rook
# if hostNetwork: false, the "rbd map" command hangs, see https://github.com/rook/rook/issues/2021
hostNetwork: true
volumes:
- name: dev
hostPath:
path: /dev
- name: sysbus
hostPath:
path: /sys/bus
- name: libmodules
hostPath:
path: /lib/modules
- name: mon-endpoint-volume
configMap:
name: rook-ceph-mon-endpoints
items:
- key: data
path: mon-endpoints
- name: ceph-config
emptyDir: {}