csi-hostpath-attacher.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. kind: Service
  2. apiVersion: v1
  3. metadata:
  4. name: csi-hostpath-attacher
  5. labels:
  6. app: csi-hostpath-attacher
  7. spec:
  8. selector:
  9. app: csi-hostpath-attacher
  10. ports:
  11. - name: dummy
  12. port: 12345
  13. ---
  14. kind: StatefulSet
  15. apiVersion: apps/v1
  16. metadata:
  17. name: csi-hostpath-attacher
  18. spec:
  19. serviceName: "csi-hostpath-attacher"
  20. replicas: 1
  21. selector:
  22. matchLabels:
  23. app: csi-hostpath-attacher
  24. template:
  25. metadata:
  26. labels:
  27. app: csi-hostpath-attacher
  28. spec:
  29. serviceAccountName: csi-attacher
  30. containers:
  31. - name: csi-attacher
  32. image: quay.io/k8scsi/csi-attacher:v0.4.1
  33. args:
  34. - --v=5
  35. - --csi-address=$(ADDRESS)
  36. env:
  37. - name: ADDRESS
  38. value: /csi/csi.sock
  39. imagePullPolicy: Always
  40. volumeMounts:
  41. - mountPath: /csi
  42. name: socket-dir
  43. volumes:
  44. - hostPath:
  45. path: /var/lib/kubelet/plugins/csi-hostpath-v0
  46. type: DirectoryOrCreate
  47. name: socket-dir