2019-02-07 09:59:26 +00:00
|
|
|
---
|
2018-07-18 14:48:43 +00:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: csi-cephfsplugin-provisioner
|
|
|
|
labels:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
|
|
|
ports:
|
|
|
|
- name: dummy
|
|
|
|
port: 12345
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: StatefulSet
|
|
|
|
apiVersion: apps/v1beta1
|
|
|
|
metadata:
|
|
|
|
name: csi-cephfsplugin-provisioner
|
|
|
|
spec:
|
|
|
|
serviceName: "csi-cephfsplugin-provisioner"
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
|
|
|
spec:
|
2019-01-23 15:05:15 +00:00
|
|
|
serviceAccount: cephfs-csi-provisioner
|
2018-07-18 14:48:43 +00:00
|
|
|
containers:
|
|
|
|
- name: csi-provisioner
|
2019-02-04 10:04:12 +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-03-27 08:28:42 +00:00
|
|
|
- name: csi-cephfsplugin-attacher
|
|
|
|
image: quay.io/k8scsi/csi-attacher:v1.0.1
|
|
|
|
args:
|
|
|
|
- "--v=5"
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
2019-03-28 09:45:02 +00:00
|
|
|
value: /csi/csi-provisioner.sock
|
2019-03-27 08:28:42 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
|
|
|
mountPath: /csi
|
2019-01-23 14:14:11 +00:00
|
|
|
- name: csi-cephfsplugin
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
capabilities:
|
|
|
|
add: ["SYS_ADMIN"]
|
2019-05-24 11:03:33 +00:00
|
|
|
# for stable functionality replace canary with latest release version
|
|
|
|
image: quay.io/cephcsi/cephcsi:canary
|
2019-02-07 09:59:26 +00:00
|
|
|
args:
|
2019-01-23 14:14:11 +00:00
|
|
|
- "--nodeid=$(NODE_ID)"
|
2019-05-24 11:03:33 +00:00
|
|
|
- "--type=cephfs"
|
2019-01-23 14:14:11 +00:00
|
|
|
- "--endpoint=$(CSI_ENDPOINT)"
|
|
|
|
- "--v=5"
|
2019-03-13 05:09:58 +00:00
|
|
|
- "--drivername=cephfs.csi.ceph.com"
|
2019-01-23 14:14:11 +00:00
|
|
|
- "--metadatastorage=k8s_configmap"
|
|
|
|
env:
|
|
|
|
- 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 14:14:11 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2019-03-18 06:50:06 +00:00
|
|
|
mountPath: /csi
|
2019-01-23 14:14:11 +00:00
|
|
|
- name: host-sys
|
|
|
|
mountPath: /sys
|
|
|
|
- name: lib-modules
|
|
|
|
mountPath: /lib/modules
|
|
|
|
readOnly: true
|
|
|
|
- name: host-dev
|
2019-02-07 09:59:26 +00:00
|
|
|
mountPath: /dev
|
2018-07-18 14:48:43 +00:00
|
|
|
volumes:
|
|
|
|
- name: socket-dir
|
|
|
|
hostPath:
|
2019-03-13 05:09:58 +00:00
|
|
|
path: /var/lib/kubelet/plugins/cephfs.csi.ceph.com
|
2018-07-18 14:48:43 +00:00
|
|
|
type: DirectoryOrCreate
|
2019-01-23 14:14:11 +00:00
|
|
|
- name: host-sys
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
|
|
|
- name: lib-modules
|
|
|
|
hostPath:
|
|
|
|
path: /lib/modules
|
|
|
|
- name: host-dev
|
|
|
|
hostPath:
|
|
|
|
path: /dev
|