Guest User

Untitled

a guest
Oct 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. kind: DaemonSet
  2. apiVersion: apps/v1
  3. metadata:
  4. name: csi-gce-pd-node
  5. spec:
  6. selector:
  7. matchLabels:
  8. app: csi-gce-pd-driver
  9. template:
  10. metadata:
  11. labels:
  12. app: csi-gce-pd-driver
  13. spec:
  14. serviceAccount: csi-node-sa
  15. containers:
  16. - name: csi-driver-registrar
  17. imagePullPolicy: Always
  18. image: quay.io/k8scsi/driver-registrar:v0.3.0
  19. args:
  20. - "--v=5"
  21. - "--csi-address=$(ADDRESS)"
  22. - "--kubelet-registration-path=/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock"
  23. env:
  24. - name: ADDRESS
  25. value: /var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock
  26. - name: KUBE_NODE_NAME
  27. valueFrom:
  28. fieldRef:
  29. fieldPath: spec.nodeName
  30. volumeMounts:
  31. - name: plugin-dir
  32. mountPath: /var/lib/kubelet/plugins/com.google.csi.gcepd/
  33. - name: registration-dir
  34. mountPath: /registration
  35. - name: gce-pd-driver
  36. securityContext:
  37. privileged: true
  38. imagePullPolicy: Always
  39. image: gcr.io/dyzz-csi-staging/csi/gce-pd-driver:latest
  40. args:
  41. - "--v=5"
  42. - "--endpoint=$(CSI_ENDPOINT)"
  43. env:
  44. - name: CSI_ENDPOINT
  45. value: unix:/csi/csi.sock
  46. volumeMounts:
  47. - name: kubelet-dir
  48. mountPath: /var/lib/kubelet
  49. mountPropagation: "Bidirectional"
  50. - name: plugin-dir
  51. mountPath: /csi
  52. - name: device-dir
  53. mountPath: /host/dev
  54. volumes:
  55. - name: registration-dir
  56. hostPath:
  57. path: /var/lib/kubelet/plugins/
  58. type: Directory
  59. - name: kubelet-dir
  60. hostPath:
  61. path: /var/lib/kubelet
  62. type: Directory
  63. - name: plugin-dir
  64. hostPath:
  65. path: /var/lib/kubelet/plugins/com.google.csi.gcepd/
  66. type: DirectoryOrCreate
  67. - name: device-dir
  68. hostPath:
  69. path: /dev
  70. type: Directory
Add Comment
Please, Sign In to add comment