Installing Grafana is very easy, as we can directly use its Docker image, which is available in the Docker.io referencing it on the OpenShift command given in the following steps:
- First of all, we need to deploy Grafana on OpenShift by issuing the following commands:
./oc new-app grafana/grafana --> Found Docker image d0454da (3 days old) from Docker Hub for "grafana/grafana"
An image stream tag will be created called grafana:latest, which will track this image. This image will be deployed in the deployment config grafana. Port 3000/tcp will be load-balanced by the grafana service.
- Other containers can access this service through the grafana host name:
--> Creating resources ...imagestream.image.openshift.io "grafana" ...