red-hat-storage / openshift-cic

CNS Inventory file Creator (CIC) , also works for OCS
GNU General Public License v3.0
31 stars 7 forks source link

Needs Prometheus Storage as well #29

Open wkulhanek opened 6 years ago

wkulhanek commented 6 years ago

I would suggest adding Prometheus Storage, too. Prometheus with gluster-block and Alertmanager/Alertbuffer with glusterfs (or maybe also gluster-block - don't know what is recommended here).

Finally why not set openshift_storage_glusterfs_storageclass_default=true?

netzzer commented 6 years ago

Agree with the need to add Prometheus support.

Current working decision is to specify the desired storageclass using inventory file options. If you want to make it default can change inventory file options from false->true before deployment or edit storageclass after deployment and add annotations: for making it the default SC (can only have one default SC per OCP instance).

netzzer commented 6 years ago

These inventory file options work for OCP 3.10. If we add Prometheus support need to know if gluster-block volumes are desired and adjust calculation for block_host_vol_size to add these 3 blockvolumes.

# prometheus
openshift_hosted_prometheus_deploy=true
openshift_prometheus_node_selector={"node-role.kubernetes.io/infra": "true"}
openshift_prometheus_namespace=openshift-metrics
openshift_prometheus_storage_kind=dynamic
openshift_prometheus_storage_class=glusterfs-registry-block
openshift_prometheus_storage_volume_size=20Gi
openshift_prometheus_storage_access_modes=['ReadWriteOnce']
openshift_prometheus_storage_volume_name=prometheus
openshift_prometheus_storage_type='pvc'

# prometheus-alertmanager
openshift_prometheus_alertmanager_storage_kind=dynamic
openshift_prometheus_alertmanager_storage_class=glusterfs-registry-block
openshift_prometheus_alertmanager_storage_access_modes=['ReadWriteOnce']
openshift_prometheus_alertmanager_storage_volume_size=10Gi
openshift_prometheus_alertmanager_storage_volume_name=prometheus-alertmanager
openshift_prometheus_alertmanager_storage_type='pvc'

# prometheus-alertbuffer
openshift_prometheus_alertbuffer_storage_kind=dynamic
openshift_prometheus_alertbuffer_storage_class=glusterfs-registry-block
openshift_prometheus_alertbuffer_storage_access_modes=['ReadWriteOnce']
openshift_prometheus_alertbuffer_storage_volume_name=prometheus-alertbuffer
openshift_prometheus_alertbuffer_storage_volume_size=10Gi
openshift_prometheus_alertbuffer_storage_type='pvc'