Ceph-osd: Fix security context for pod/container
This changes the user from root to the nobody user instead in ceph-osd chart wherever needed This also permits read-only filesystems to back the containers by setting the default to true Change-Id: Ia777bf212e0e3414909c70a4bd839e12d4919bb2
This commit is contained in:
parent
ed200cb3b0
commit
c9a1c412e7
@ -265,6 +265,8 @@ spec:
|
|||||||
mountPath: /run
|
mountPath: /run
|
||||||
- name: pod-etc-ceph
|
- name: pod-etc-ceph
|
||||||
mountPath: /etc/ceph
|
mountPath: /etc/ceph
|
||||||
|
- name: pod-forego
|
||||||
|
mountPath: /etc/forego
|
||||||
- name: ceph-osd-bin
|
- name: ceph-osd-bin
|
||||||
mountPath: /tmp/osd-start.sh
|
mountPath: /tmp/osd-start.sh
|
||||||
subPath: osd-start.sh
|
subPath: osd-start.sh
|
||||||
@ -335,6 +337,8 @@ spec:
|
|||||||
medium: "Memory"
|
medium: "Memory"
|
||||||
- name: pod-etc-ceph
|
- name: pod-etc-ceph
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: pod-forego
|
||||||
|
emptyDir: {}
|
||||||
- name: devices
|
- name: devices
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev
|
path: /dev
|
||||||
|
@ -43,29 +43,35 @@ pod:
|
|||||||
security_context:
|
security_context:
|
||||||
osd:
|
osd:
|
||||||
pod:
|
pod:
|
||||||
runAsUser: 0
|
runAsUser: 65534
|
||||||
container:
|
container:
|
||||||
ceph_init_dirs:
|
ceph_init_dirs:
|
||||||
|
runAsUser: 0
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
ceph_log_ownership:
|
ceph_log_ownership:
|
||||||
|
runAsUser: 0
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
osd_init:
|
osd_init:
|
||||||
|
runAsUser: 0
|
||||||
privileged: true
|
privileged: true
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
osd_pod:
|
osd_pod:
|
||||||
|
runAsUser: 0
|
||||||
privileged: true
|
privileged: true
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: true
|
||||||
bootstrap:
|
bootstrap:
|
||||||
pod:
|
pod:
|
||||||
runAsUser: 0
|
runAsUser: 65534
|
||||||
container:
|
container:
|
||||||
ceph_osd_bootstrap:
|
ceph_osd_bootstrap:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
test:
|
test:
|
||||||
pod:
|
pod:
|
||||||
runAsUser: 0
|
runAsUser: 65534
|
||||||
container:
|
container:
|
||||||
ceph_cluster_helm_test:
|
ceph_cluster_helm_test:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
dns_policy: "ClusterFirstWithHostNet"
|
dns_policy: "ClusterFirstWithHostNet"
|
||||||
affinity:
|
affinity:
|
||||||
|
Loading…
Reference in New Issue
Block a user