Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kind: DaemonSet
- apiVersion: apps/v1
- metadata:
- name: csi-gce-pd-node
- spec:
- selector:
- matchLabels:
- app: csi-gce-pd-driver
- template:
- metadata:
- labels:
- app: csi-gce-pd-driver
- spec:
- serviceAccount: csi-node-sa
- containers:
- - name: csi-driver-registrar
- imagePullPolicy: Always
- image: quay.io/k8scsi/driver-registrar:v0.3.0
- args:
- - "--v=5"
- - "--csi-address=$(ADDRESS)"
- - "--kubelet-registration-path=/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock"
- env:
- - name: ADDRESS
- value: /var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock
- - name: KUBE_NODE_NAME
- valueFrom:
- fieldRef:
- fieldPath: spec.nodeName
- volumeMounts:
- - name: plugin-dir
- mountPath: /var/lib/kubelet/plugins/com.google.csi.gcepd/
- - name: registration-dir
- mountPath: /registration
- - name: gce-pd-driver
- securityContext:
- privileged: true
- imagePullPolicy: Always
- image: gcr.io/dyzz-csi-staging/csi/gce-pd-driver:latest
- args:
- - "--v=5"
- - "--endpoint=$(CSI_ENDPOINT)"
- env:
- - name: CSI_ENDPOINT
- value: unix:/csi/csi.sock
- volumeMounts:
- - name: kubelet-dir
- mountPath: /var/lib/kubelet
- mountPropagation: "Bidirectional"
- - name: plugin-dir
- mountPath: /csi
- - name: device-dir
- mountPath: /host/dev
- volumes:
- - name: registration-dir
- hostPath:
- path: /var/lib/kubelet/plugins/
- type: Directory
- - name: kubelet-dir
- hostPath:
- path: /var/lib/kubelet
- type: Directory
- - name: plugin-dir
- hostPath:
- path: /var/lib/kubelet/plugins/com.google.csi.gcepd/
- type: DirectoryOrCreate
- - name: device-dir
- hostPath:
- path: /dev
- type: Directory
Add Comment
Please, Sign In to add comment