2019-02-07 09:59:26 +00:00
|
|
|
---
|
2019-06-14 09:42:48 +00:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
2018-07-18 14:48:43 +00:00
|
|
|
metadata:
|
|
|
|
name: csi-cephfsplugin-provisioner
|
2019-06-14 09:42:48 +00:00
|
|
|
labels:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
2018-07-18 14:48:43 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
2019-06-14 09:42:48 +00:00
|
|
|
app: csi-cephfsplugin-provisioner
|
|
|
|
ports:
|
|
|
|
- name: dummy
|
|
|
|
port: 12345
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: StatefulSet
|
2019-06-19 09:05:44 +00:00
|
|
|
apiVersion: apps/v1
|
2019-06-14 09:42:48 +00:00
|
|
|
metadata:
|
|
|
|
name: csi-cephfsplugin-provisioner
|
|
|
|
spec:
|
2019-06-19 09:05:44 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: csi-cephfsplugin-provisioner
|
2019-06-14 09:42:48 +00:00
|
|
|
serviceName: "csi-cephfsplugin-provisioner"
|
|
|
|
replicas: 1
|
2018-07-18 14:48:43 +00:00
|
|
|
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-06-27 11:48:31 +00:00
|
|
|
image: quay.io/k8scsi/csi-provisioner:v1.3.0
|
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
|
2019-06-27 11:48:31 +00:00
|
|
|
image: quay.io/k8scsi/csi-attacher:v1.2.0
|
2019-03-27 08:28:42 +00:00
|
|
|
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
|
2019-05-28 19:03:18 +00:00
|
|
|
- name: ceph-csi-config
|
|
|
|
mountPath: /etc/ceph-csi-config/
|
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
|
2019-05-28 19:03:18 +00:00
|
|
|
- name: ceph-csi-config
|
|
|
|
configMap:
|
|
|
|
name: ceph-csi-config
|