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:
|
|
|
|
serviceAccount: csi-provisioner
|
|
|
|
containers:
|
|
|
|
- name: csi-provisioner
|
2019-01-16 18:52:45 +00:00
|
|
|
image: quay.io/k8scsi/csi-provisioner:canary
|
2018-07-18 14:48:43 +00:00
|
|
|
args:
|
|
|
|
- "--csi-address=$(ADDRESS)"
|
|
|
|
- "--v=5"
|
|
|
|
env:
|
|
|
|
- name: ADDRESS
|
2018-12-04 20:08:39 +00:00
|
|
|
value: /var/lib/kubelet/plugins_registry/csi-rbdplugin/csi.sock
|
2018-07-18 14:48:43 +00:00
|
|
|
imagePullPolicy: "IfNotPresent"
|
|
|
|
volumeMounts:
|
|
|
|
- name: socket-dir
|
2018-12-04 20:08:39 +00:00
|
|
|
mountPath: /var/lib/kubelet/plugins_registry/csi-rbdplugin
|
2018-07-18 14:48:43 +00:00
|
|
|
volumes:
|
|
|
|
- name: socket-dir
|
|
|
|
hostPath:
|
2018-12-04 20:08:39 +00:00
|
|
|
path: /var/lib/kubelet/plugins_registry/csi-rbdplugin
|
2018-07-18 14:48:43 +00:00
|
|
|
type: DirectoryOrCreate
|