Skip to content

Deploying Grafana Operator from OperatorHub using the OpenShift web console

Helene Wassmann edited this page Aug 3, 2021 · 7 revisions
  1. create a new project, for example: my-grafana
[root@mycluster-inf ~]# oc new-project my-grafana
Now using project "my-grafana" on server "https://api.mycluster.os.fyre.ibm.com:6443".

You can add applications to this project with the 'new-app' command. For example, try:

    oc new-app django-psql-example

to build a new example application in Python. Or use kubectl to deploy a simple Kubernetes application:

    kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node

  1. Update the 'namespace:' field in the example_deployment_scripts/grafana_deployment/grafana-instance-for-cnss.yaml script with the new created project name.

  2. Navigate to OperatorHub and select the community-powered Grafana Operator. Press Continue to accept the disclaimer, press Install, and press Subscribe to accept the default configuration values and deploy to the my-grafana namespace.

Within some time, the Grafana operator will be made available in the my-grafana namespace.

You can also verify the grafana operator successfully installed in the 'my-grafana' namespace using command line

[root@mycluster-inf ~]# oc get po -n my-grafana
NAME                                READY   STATUS    RESTARTS   AGE
grafana-operator-857c86c65d-62t7m   1/1     Running   0          78s

  1. Change to the directory example_deployment_scripts/grafana_deployment/ and apply the grafana-instance-for-cnss.yaml file
[root@mycluster-inf ~]# cd /opt/example_deployment_scripts/grafana_deployment

[root@mycluster-inf grafana_deployment]# oc create -f grafana-instance-for-cnss.yaml
grafana.integreatly.org/grafana-for-cnss created

[root@mycluster-inf grafana_deployment]# oc get Grafana
NAME               AGE
grafana-for-cnss   42s

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally