mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
@ -4,7 +4,7 @@ LABEL description="RBD CSI Plugin"
|
||||
|
||||
ENV CEPH_VERSION "mimic"
|
||||
RUN yum install -y centos-release-ceph && \
|
||||
yum install -y ceph-common e2fsprogs && \
|
||||
yum install -y ceph-common e2fsprogs rbd-nbd && \
|
||||
yum clean all
|
||||
|
||||
COPY rbdplugin /rbdplugin
|
||||
|
@ -34,7 +34,7 @@ spec:
|
||||
mountPath: /var/lib/kubelet/plugins/csi-rbdplugin
|
||||
- name: registration-dir
|
||||
mountPath: /registration
|
||||
- name: csi-rbdplugin
|
||||
- name: csi-rbdplugin
|
||||
securityContext:
|
||||
privileged: true
|
||||
capabilities:
|
||||
@ -47,6 +47,8 @@ spec:
|
||||
- "--v=5"
|
||||
- "--drivername=csi-rbdplugin"
|
||||
env:
|
||||
- name: HOST_ROOTFS
|
||||
value: "/host"
|
||||
- name: NODE_ID
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
@ -62,6 +64,8 @@ spec:
|
||||
mountPropagation: "Bidirectional"
|
||||
- mountPath: /dev
|
||||
name: host-dev
|
||||
- mountPath: /host
|
||||
name: host-rootfs
|
||||
- mountPath: /sys
|
||||
name: host-sys
|
||||
- mountPath: /lib/modules
|
||||
@ -87,6 +91,9 @@ spec:
|
||||
- name: host-dev
|
||||
hostPath:
|
||||
path: /dev
|
||||
- name: host-rootfs
|
||||
hostPath:
|
||||
path: /
|
||||
- name: host-sys
|
||||
hostPath:
|
||||
path: /sys
|
||||
|
Reference in New Issue
Block a user