diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2017-05-31 11:48:33 -0500 |
---|---|---|
committer | Jose A. Rivera <jarrpa@redhat.com> | 2017-06-13 13:10:23 -0500 |
commit | a315411dee1217518bbd83bf6508bc44e0fec5d6 (patch) | |
tree | 710675235f0b90eab1965171f6351648d2dac77b /roles/openshift_storage_glusterfs/files/v3.6/glusterfs-template.yml | |
parent | 5e73aa7b07fefbb211c791f4b5b5f8d29af7860f (diff) | |
download | openshift-a315411dee1217518bbd83bf6508bc44e0fec5d6.tar.gz openshift-a315411dee1217518bbd83bf6508bc44e0fec5d6.tar.bz2 openshift-a315411dee1217518bbd83bf6508bc44e0fec5d6.tar.xz openshift-a315411dee1217518bbd83bf6508bc44e0fec5d6.zip |
GlusterFS: Allow cleaner separation of multiple clusters
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles/openshift_storage_glusterfs/files/v3.6/glusterfs-template.yml')
-rw-r--r-- | roles/openshift_storage_glusterfs/files/v3.6/glusterfs-template.yml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/roles/openshift_storage_glusterfs/files/v3.6/glusterfs-template.yml b/roles/openshift_storage_glusterfs/files/v3.6/glusterfs-template.yml index 66f2f1c55..dc3d2250a 100644 --- a/roles/openshift_storage_glusterfs/files/v3.6/glusterfs-template.yml +++ b/roles/openshift_storage_glusterfs/files/v3.6/glusterfs-template.yml @@ -12,20 +12,21 @@ objects: - kind: DaemonSet apiVersion: extensions/v1beta1 metadata: - name: glusterfs + name: glusterfs-${CLUSTER_NAME} labels: - glusterfs: daemonset + glusterfs: ${CLUSTER_NAME}-daemonset annotations: description: GlusterFS DaemonSet tags: glusterfs spec: selector: matchLabels: - glusterfs-node: pod + glusterfs: ${CLUSTER_NAME}-pod template: metadata: - name: glusterfs + name: glusterfs-${CLUSTER_NAME} labels: + glusterfs: ${CLUSTER_NAME}-pod glusterfs-node: pod spec: nodeSelector: "${{NODE_LABELS}}" @@ -121,11 +122,14 @@ objects: parameters: - name: NODE_LABELS displayName: Daemonset Node Labels - description: Labels which define the daemonset node selector. - value: '{ "storagenode": "glusterfs" }' + description: Labels which define the daemonset node selector. Must contain at least one label of the format \'glusterfs=<CLUSTER_NAME>-host\' + value: '{ "glusterfs": "storage-host" }' - name: IMAGE_NAME displayName: GlusterFS container name required: True - name: IMAGE_VERSION displayName: GlusterFS container versiona required: True +- name: CLUSTER_NAME + displayName: GlusterFS cluster name + value: storage |