diff --git a/grafana/README.md b/grafana/README.md index 886ef2d..4b75117 100644 --- a/grafana/README.md +++ b/grafana/README.md @@ -12,16 +12,19 @@ on OpenShift. ### Pre-requisites +First, make sure the is a `rhel7` imagestream in the `openshift` namespace. ``` oc import-image -n openshift rhel7 --from registry.access.redhat.com/rhel7:latest --confirm ``` +Then, make sure you are cluster-admin on your OpenShift cluster. + ### Deploy Grafana and Prometheus ``` oc process -f grafana-prometheus-storage.yaml -p PVC_SIZE=1Gi |oc create -f - -oc process -f grafana-prometheus.yaml |oc create -f - -oc process -f grafana-base.yaml |oc create -f - +oc process -f grafana-prometheus.yaml -p PROMETHEUS_ROUTE_HOSTNAME=prometheus.app.openshift.test -p ALERTS_ROUTE_HOSTNAME=alerts.app.openshift.test |oc create -f - +oc process -f grafana-base.yaml -p GRAFANA_ROUTE_HOSTNAME=grafana.app.openshift.test |oc create -f - ``` ### Deploy only Grafana with its vanilla configuration