12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- kind: StatefulSet
- apiVersion: apps/v1
- metadata:
- name: csi-mockplugin
- spec:
- selector:
- matchLabels:
- app: csi-mockplugin
- replicas: 1
- template:
- metadata:
- labels:
- app: csi-mockplugin
- spec:
- serviceAccountName: csi-mock
- containers:
- - name: csi-provisioner
- image: quay.io/k8scsi/csi-provisioner:v1.1.0
- args:
- - "--provisioner=csi-hostpath"
- - "--csi-address=$(ADDRESS)"
- - "--connection-timeout=15s"
- env:
- - name: ADDRESS
- value: /csi/csi.sock
- imagePullPolicy: Always
- volumeMounts:
- - mountPath: /csi
- name: socket-dir
- - name: driver-registrar
- image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
- args:
- - --v=5
- - --csi-address=/csi/csi.sock
- - --kubelet-registration-path=/var/lib/kubelet/plugins/csi-mock/csi.sock
- env:
- - name: KUBE_NODE_NAME
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: spec.nodeName
- imagePullPolicy: Always
- securityContext:
- privileged: true
- volumeMounts:
- - mountPath: /csi
- name: socket-dir
- - mountPath: /registration
- name: registration-dir
- - name: mock
- image: quay.io/k8scsi/mock-driver:v1.1.1
- env:
- - name: CSI_ENDPOINT
- value: /csi/csi.sock
- - name: KUBE_NODE_NAME
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: spec.nodeName
- securityContext:
- privileged: true
- imagePullPolicy: IfNotPresent
- volumeMounts:
- - mountPath: /csi
- name: socket-dir
- - mountPath: /var/lib/kubelet/pods
- mountPropagation: Bidirectional
- name: mountpoint-dir
- volumes:
- - hostPath:
- path: /var/lib/kubelet/plugins/csi-mock
- type: DirectoryOrCreate
- name: socket-dir
- - hostPath:
- path: /var/lib/kubelet/pods
- type: DirectoryOrCreate
- name: mountpoint-dir
- - hostPath:
- path: /var/lib/kubelet/plugins_registry
- type: Directory
- name: registration-dir
|