csi-mock-driver-attacher.yaml 804 B

1234567891011121314151617181920212223242526272829303132333435
  1. kind: StatefulSet
  2. apiVersion: apps/v1
  3. metadata:
  4. name: csi-mockplugin-attacher
  5. spec:
  6. selector:
  7. matchLabels:
  8. app: csi-mockplugin-attacher
  9. replicas: 1
  10. template:
  11. metadata:
  12. labels:
  13. app: csi-mockplugin-attacher
  14. spec:
  15. serviceAccountName: csi-mock
  16. containers:
  17. - name: csi-attacher
  18. image: quay.io/k8scsi/csi-attacher:v1.1.0
  19. args:
  20. - --v=5
  21. - --csi-address=$(ADDRESS)
  22. env:
  23. - name: ADDRESS
  24. value: /csi/csi.sock
  25. imagePullPolicy: Always
  26. volumeMounts:
  27. - mountPath: /csi
  28. name: socket-dir
  29. volumes:
  30. - hostPath:
  31. path: /var/lib/kubelet/plugins/csi-mock
  32. type: DirectoryOrCreate
  33. name: socket-dir