2019-02-07 09:59:26 +00:00
|
|
|
---
|
2018-07-18 14:48:43 +00:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: csi-rbdplugin-provisioner
|
|
|
|
labels:
|
|
|
|
app: csi-rbdplugin-provisioner
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: csi-rbdplugin-provisioner
|
|
|
|
ports:
|
|
|
|
- name: dummy
|
|
|
|
port: 12345
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: StatefulSet
|
|
|
|
apiVersion: apps/v1beta1
|
|
|
|
metadata:
|
|
|
|
name: csi-rbdplugin-provisioner
|
|
|
|
spec:
|
|
|
|
serviceName: "csi-rbdplugin-provisioner"
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: csi-rbdplugin-provisioner
|
|
|
|
spec:
|
2019-01-23 15:05:15 +00:00
|
|
|
serviceAccount: rbd-csi-provisioner
|
2018-07-18 14:48:43 +00:00
|
|
|
containers:
|
|
|
|
- name: csi-provisioner
|
2019-02-04 08:47:01 +00:00
|
|
|
image: quay.io/k8scsi/csi-provisioner:v1.0.1
|
2018-07-18 14:48:43 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
|
|
|
- "--v=5"
|
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
2019-03-18 06:50:06 +00:00
|
|
|
value: unix:///csi/csi-provisioner.sock
|
2018-07-18 14:48:43 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2019-03-18 06:50:06 +00:00
|
|
|
mountPath: /csi
|
2019-01-25 19:10:20 +00:00
|
|
|
- name: csi-snapshotter
|
|
|
|
image: quay.io/k8scsi/csi-snapshotter:v1.0.1
|
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
|
|
|
- "--connection-timeout=15s"
|
|
|
|
- "--v=5"
|
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
2019-03-18 06:50:06 +00:00
|
|
|
value: unix:///csi/csi-provisioner.sock
|
2019-01-25 19:10:20 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2019-03-18 06:50:06 +00:00
|
|
|
mountPath: /csi
|
2019-01-23 15:05:15 +00:00
|
|
|
- name: csi-rbdplugin
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
capabilities:
|
|
|
|
add: ["SYS_ADMIN"]
|
|
|
|
image: quay.io/cephcsi/rbdplugin:v1.0.0
|
2019-02-07 09:59:26 +00:00
|
|
|
args:
|
2019-01-23 15:05:15 +00:00
|
|
|
- "--nodeid=$(NODE_ID)"
|
|
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
|
|
- "--v=5"
|
2019-03-13 05:09:58 +00:00
|
|
|
- "--drivername=rbd.csi.ceph.com"
|
2019-01-23 15:05:15 +00:00
|
|
|
- "--containerized=true"
|
|
|
|
- "--metadatastorage=k8s_configmap"
|
2019-03-07 21:03:33 +00:00
|
|
|
- "--configroot=k8s_objects"
|
2019-01-23 15:05:15 +00:00
|
|
|
env:
|
|
|
|
- name: HOST_ROOTFS
|
2019-02-07 09:59:26 +00:00
|
|
|
value: "/rootfs"
|
2019-01-23 15:05:15 +00:00
|
|
|
- name: NODE_ID
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
- name: POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
- name: CSI_ENDPOINT
|
2019-03-18 06:50:06 +00:00
|
|
|
value: unix:///csi/csi-provisioner.sock
|
2019-01-23 15:05:15 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2019-03-18 06:50:06 +00:00
|
|
|
mountPath: /csi
|
2019-01-23 15:05:15 +00:00
|
|
|
- mountPath: /dev
|
|
|
|
name: host-dev
|
|
|
|
- mountPath: /rootfs
|
2019-02-07 09:59:26 +00:00
|
|
|
name: host-rootfs
|
2019-01-23 15:05:15 +00:00
|
|
|
- mountPath: /sys
|
|
|
|
name: host-sys
|
|
|
|
- mountPath: /lib/modules
|
|
|
|
name: lib-modules
|
|
|
|
readOnly: true
|
2018-07-18 14:48:43 +00:00
|
|
|
volumes:
|
2019-01-23 15:05:15 +00:00
|
|
|
- name: host-dev
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|
|
|
|
- name: host-rootfs
|
|
|
|
hostPath:
|
2019-02-07 09:59:26 +00:00
|
|
|
path: /
|
2019-01-23 15:05:15 +00:00
|
|
|
- name: host-sys
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
|
|
|
- name: lib-modules
|
|
|
|
hostPath:
|
2019-02-07 09:59:26 +00:00
|
|
|
path: /lib/modules
|
2018-07-18 14:48:43 +00:00
|
|
|
- name: socket-dir
|
|
|
|
hostPath:
|
2019-03-13 05:09:58 +00:00
|
|
|
path: /var/lib/kubelet/plugins/rbd.csi.ceph.com
|
2018-07-18 14:48:43 +00:00
|
|
|
type: DirectoryOrCreate
|