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