gluster-s3-pvcs-template.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ---
  2. kind: Template
  3. apiVersion: v1
  4. metadata:
  5. name: gluster-s3-pvcs
  6. labels:
  7. glusterfs: s3-pvcs-template
  8. gluster-s3: pvcs-template
  9. annotations:
  10. description: Gluster S3 service template
  11. tags: glusterfs,heketi,gluster-s3
  12. objects:
  13. - kind: PersistentVolumeClaim
  14. apiVersion: v1
  15. metadata:
  16. name: "${PVC}"
  17. labels:
  18. glusterfs: s3-${CLUSTER_NAME}-${S3_ACCOUNT}-storage
  19. gluster-s3: ${CLUSTER_NAME}-${S3_ACCOUNT}-pvc
  20. annotations:
  21. volume.beta.kubernetes.io/storage-class: "glusterfs-${CLUSTER_NAME}"
  22. spec:
  23. accessModes:
  24. - ReadWriteMany
  25. resources:
  26. requests:
  27. storage: "${PVC_SIZE}"
  28. - kind: PersistentVolumeClaim
  29. apiVersion: v1
  30. metadata:
  31. name: "${META_PVC}"
  32. labels:
  33. glusterfs: s3-${CLUSTER_NAME}-${S3_ACCOUNT}-storage
  34. gluster-s3: ${CLUSTER_NAME}-${S3_ACCOUNT}-meta-pvc
  35. annotations:
  36. volume.beta.kubernetes.io/storage-class: "glusterfs-${CLUSTER_NAME}"
  37. spec:
  38. accessModes:
  39. - ReadWriteMany
  40. resources:
  41. requests:
  42. storage: "${META_PVC_SIZE}"
  43. parameters:
  44. - name: S3_ACCOUNT
  45. displayName: S3 Account Name
  46. description: S3 storage account which will provide storage on GlusterFS volumes
  47. required: true
  48. - name: PVC
  49. displayName: Primary GlusterFS-backed PVC
  50. description: GlusterFS-backed PVC for object storage
  51. required: true
  52. - name: PVC_SIZE
  53. displayName: Primary GlusterFS-backed PVC capacity
  54. description: Capacity for GlusterFS-backed PVC for object storage
  55. value: 2Gi
  56. - name: META_PVC
  57. displayName: Metadata GlusterFS-backed PVC
  58. description: GlusterFS-backed PVC for object storage metadata
  59. required: true
  60. - name: META_PVC_SIZE
  61. displayName: Metadata GlusterFS-backed PVC capacity
  62. description: Capacity for GlusterFS-backed PVC for object storage metadata
  63. value: 1Gi
  64. - name: CLUSTER_NAME
  65. displayName: GlusterFS cluster name
  66. description: A unique name to identify which heketi service manages this cluster, useful for running multiple heketi instances
  67. value: storage