You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. apiVersion: extensions/v1beta1
  2. kind: DaemonSet
  3. metadata:
  4. name: local-volume-provisioner
  5. namespace: "{{ system_namespace }}"
  6. spec:
  7. template:
  8. metadata:
  9. labels:
  10. app: local-volume-provisioner
  11. spec:
  12. containers:
  13. - name: provisioner
  14. image: {{ local_volume_provisioner_image_repo }}:{{ local_volume_provisioner_image_tag }}
  15. imagePullPolicy: {{ k8s_image_pull_policy }}
  16. securityContext:
  17. privileged: true
  18. volumeMounts:
  19. - name: discovery-vol
  20. mountPath: "/local-disks"
  21. - name: local-volume-config
  22. mountPath: /etc/provisioner/config/
  23. env:
  24. - name: MY_NODE_NAME
  25. valueFrom:
  26. fieldRef:
  27. apiVersion: v1
  28. fieldPath: spec.nodeName
  29. - name: MY_NAMESPACE
  30. valueFrom:
  31. fieldRef:
  32. apiVersion: v1
  33. fieldPath: metadata.namespace
  34. volumes:
  35. - name: discovery-vol
  36. hostPath:
  37. path: "{{ local_volume_base_dir }}"
  38. - configMap:
  39. defaultMode: 420
  40. name: local-volume-config
  41. name: local-volume-config
  42. serviceAccount: local-storage-admin