github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/build/csisamples/hostpath/deploy/csinode.yaml (about) 1 kind: DaemonSet 2 apiVersion: apps/v1beta2 3 metadata: 4 name: csi-hostpath-edge 5 namespace: kubeedge 6 spec: 7 selector: 8 matchLabels: 9 app: csi-hostpath-edge 10 template: 11 metadata: 12 labels: 13 app: csi-hostpath-edge 14 spec: 15 hostNetwork: true 16 containers: 17 - name: node-driver-registrar 18 image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 19 imagePullPolicy: IfNotPresent 20 lifecycle: 21 preStop: 22 exec: 23 command: ["/bin/sh", "-c", "rm -rf /registration/csi-hostpath /registration/csi-hostpath-reg.sock"] 24 args: 25 - --v=5 26 - --csi-address=/csi/csi.sock 27 - --kubelet-registration-path=/var/lib/edged/plugins/csi-hostpath/csi.sock 28 securityContext: 29 privileged: true 30 env: 31 - name: KUBE_NODE_NAME 32 valueFrom: 33 fieldRef: 34 fieldPath: spec.nodeName 35 volumeMounts: 36 - name: socket-dir 37 mountPath: /csi 38 - name: registration-dir 39 mountPath: /registration 40 - name: csi-hostpath-driver 41 securityContext: 42 privileged: true 43 capabilities: 44 add: ["SYS_ADMIN"] 45 allowPrivilegeEscalation: true 46 image: quay.io/k8scsi/hostpathplugin:v1.1.0 47 imagePullPolicy: IfNotPresent 48 args: 49 - "--drivername=csi-hostpath" 50 - "--v=5" 51 - "--nodeid=$(KUBE_NODE_NAME)" 52 - "--endpoint=unix:///csi/csi.sock" 53 env: 54 - name: KUBE_NODE_NAME 55 valueFrom: 56 fieldRef: 57 apiVersion: v1 58 fieldPath: spec.nodeName 59 volumeMounts: 60 - name: socket-dir 61 mountPath: /csi 62 - name: plugins-dir 63 mountPath: /var/lib/edged/plugins 64 mountPropagation: Bidirectional 65 - name: mountpoint-dir 66 mountPath: /var/lib/edged/pods 67 mountPropagation: "Bidirectional" 68 volumes: 69 - name: socket-dir 70 hostPath: 71 path: /var/lib/edged/plugins/csi-hostpath 72 type: DirectoryOrCreate 73 - name: registration-dir 74 hostPath: 75 path: /var/lib/edged/plugins_registry 76 type: DirectoryOrCreate 77 - name: plugins-dir 78 hostPath: 79 path: /var/lib/edged/plugins 80 type: DirectoryOrCreate 81 - name: mountpoint-dir 82 hostPath: 83 path: /var/lib/edged/pods 84 type: DirectoryOrCreate