1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- kind: DaemonSet
- apiVersion: apps/v1
- metadata:
- name: csi-hostpathplugin
- spec:
- selector:
- matchLabels:
- app: csi-hostpathplugin
- template:
- metadata:
- labels:
- app: csi-hostpathplugin
- spec:
- serviceAccountName: csi-node-sa
- hostNetwork: true
- containers:
- - name: driver-registrar
- image: quay.io/k8scsi/driver-registrar:v0.4.1
- args:
- - --v=5
- - --csi-address=/csi/csi.sock
- - --kubelet-registration-path=/var/lib/kubelet/plugins/csi-hostpath-v0/csi.sock
- env:
- - name: KUBE_NODE_NAME
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: spec.nodeName
- imagePullPolicy: Always
- volumeMounts:
- - mountPath: /csi
- name: socket-dir
- - mountPath: /registration
- name: registration-dir
- - name: hostpath
- image: quay.io/k8scsi/hostpathplugin:v0.4.1
- args:
- - "--v=5"
- - "--endpoint=$(CSI_ENDPOINT)"
- - "--nodeid=$(KUBE_NODE_NAME)"
- env:
- - name: CSI_ENDPOINT
- value: unix:///csi/csi.sock
- - name: KUBE_NODE_NAME
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: spec.nodeName
- imagePullPolicy: Always
- securityContext:
- privileged: true
- volumeMounts:
- - mountPath: /csi
- name: socket-dir
- - mountPath: /var/lib/kubelet/pods
- mountPropagation: Bidirectional
- name: mountpoint-dir
- volumes:
- - hostPath:
- path: /var/lib/kubelet/plugins/csi-hostpath-v0
- type: DirectoryOrCreate
- name: socket-dir
- - hostPath:
- path: /var/lib/kubelet/pods
- type: DirectoryOrCreate
- name: mountpoint-dir
- - hostPath:
- path: /var/lib/kubelet/plugins
- type: Directory
- name: registration-dir
|