Skip to content

Commit c73a9e5

Browse files
committed
provide instructions installing a grafana from OperatorHub using the CLI
1 parent 45a4793 commit c73a9e5

File tree

5 files changed

+36
-4
lines changed

5 files changed

+36
-4
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Deploying Grafana instance for monitoring the IBM Spectrum Scale Container Native Storage Access(CNSA) in a k8s/OCP environment
2+
3+
4+
Using the scripts in this folder you can deploy an Grafana instance in the project 'grafana-for-cnsa'
5+
6+
```
7+
oc new-project grafana-for-cnsa
8+
oc apply -f operator-group.yaml
9+
oc apply -f grafana-operator-subscription.yaml
10+
oc apply -f grafana-instance-for-cnsa.yaml
11+
12+
```
13+
14+
Alternatively you can install a Grafana instance using the OpenShift Container Platform web console. Please check the instructions described in the deployment examples stored in the project [Wiki](/docs/grafana_deployment_ocp.md)

example_deployment_scripts/grafana_deployment/grafana-instance-for-cnss.yaml renamed to example_deployment_scripts/grafana_deployment/grafana-instance-for-cnsa.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
apiVersion: integreatly.org/v1alpha1
22
kind: Grafana
33
metadata:
4-
name: grafana-for-cnss
5-
namespace: <grafana-instance namespace>
4+
namespace: grafana-for-cnsa
5+
name: grafana-for-cnsa
66
spec:
7-
ingress:
8-
enabled: true
97
config:
108
auth:
119
disable_signout_menu: true
@@ -17,6 +15,8 @@ spec:
1715
security:
1816
admin_password: secret
1917
admin_user: root
18+
ingress:
19+
enabled: true
2020
dashboardLabelSelector:
2121
- matchExpressions:
2222
- key: app
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: Subscription
3+
metadata:
4+
name: grafana-operator-subscription
5+
namespace: grafana-for-cnsa
6+
spec:
7+
channel: alpha
8+
name: grafana-operator
9+
source: community-operators
10+
sourceNamespace: openshift-marketplace
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: operators.coreos.com/v1
2+
kind: OperatorGroup
3+
metadata:
4+
name: ibm-spectrum-scale-operators-group
5+
namespace: grafana-for-cnsa
6+
spec:
7+
targetNamespaces:
8+
- grafana-for-cnsa

0 commit comments

Comments
 (0)