Skip to content

Commit 889c94f

Browse files
authored
Merge pull request #79 from Helene/namespace
rework openshift_deployment_scripts
2 parents d6ecfab + 6e205a4 commit 889c94f

File tree

8 files changed

+36
-16
lines changed

8 files changed

+36
-16
lines changed
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# Example deployment of a GrafanaDataSource instance in a k8s/OCP environment
22

33

4-
Using the scripts in this folder you can deploy a GrafanaDataSource instance for the IBM Spectrum Scale Performance Monitoring Bridge for Grafana running in container
4+
Using the scripts in this folder you can deploy a GrafanaDataSource instance for the IBM Spectrum Scale Performance Monitoring Bridge for Grafana running in in the project 'grafana-for-cnsa'
55

6+
```
7+
NAMESPACE=grafana-for-cnsa
8+
```
9+
```
10+
echo $NAMESPACE
11+
```
612
```
713
oc adm policy add-cluster-role-to-user ibm-spectrum-scale-operator -z grafana-serviceaccount
8-
oc apply -f grafana-bridge-datasource.yaml
9-
oc describe GrafanaDataSource bridge-grafanadatasource
10-
14+
```
15+
```
16+
oc apply -f grafana-bridge-datasource.yaml --namespace=$NAMESPACE
17+
```
18+
```
19+
oc describe GrafanaDataSource bridge-grafanadatasource --namespace=$NAMESPACE
1120
```
1221

1322
For complete deployment examples please check the project [Wiki](https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana/wiki)

examples/openshift_deployment_scripts/grafana_datasource_deployment/grafana-bridge-datasource.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
kind: GrafanaDataSource
33
metadata:
44
name: bridge-grafanadatasource
5-
namespace: grafana-for-cnsa
65
spec:
76
datasources:
87
- access: proxy

examples/openshift_deployment_scripts/grafana_deployment/README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@
44
Using the scripts in this folder you can deploy a Grafana instance in the project 'grafana-for-cnsa'
55

66
```
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-
7+
NAMESPACE=grafana-for-cnsa
8+
```
9+
```
10+
echo $NAMESPACE
11+
```
12+
```
13+
oc new-project $NAMESPACE
14+
```
15+
```
16+
oc apply -f operator-group.yaml --namespace=$NAMESPACE
17+
```
18+
```
19+
oc apply -f grafana-operator-subscription.yaml --namespace=$NAMESPACE
20+
```
21+
```
22+
oc apply -f grafana-instance-for-cnsa.yaml --namespace=$NAMESPACE
1223
```
1324

1425
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)

examples/openshift_deployment_scripts/grafana_deployment/grafana-instance-for-cnsa.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apiVersion: integreatly.org/v1alpha1
22
kind: Grafana
33
metadata:
4-
namespace: grafana-for-cnsa
54
name: grafana-for-cnsa
65
spec:
76
config:

examples/openshift_deployment_scripts/grafana_deployment/grafana-operator-subscription.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: operators.coreos.com/v1alpha1
22
kind: Subscription
33
metadata:
44
name: grafana-operator-subscription
5-
namespace: grafana-for-cnsa
65
spec:
76
channel: v4
87
name: grafana-operator

examples/openshift_deployment_scripts/grafana_deployment/operator-group.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: operators.coreos.com/v1
22
kind: OperatorGroup
33
metadata:
44
name: ibm-spectrum-scale-operators-group
5-
namespace: grafana-for-cnsa
65
spec:
76
targetNamespaces:
87
- grafana-for-cnsa

examples/openshift_deployment_scripts/provision_dashboard/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Using the scripts in this folder you can provision an example dashboard to the Grafana instance running in the project 'grafana-for-cnsa'
55

66
```
7-
oc apply -f cnsa-cluster-simple-dashboard.yaml -n grafana-for-cnsa
8-
7+
NAMESPACE=grafana-for-cnsa
8+
```
9+
```
10+
echo $NAMESPACE
11+
```
12+
```
13+
oc apply -f cnsa-cluster-simple-dashboard.yaml --namespace=$NAMESPACE
914
```

examples/openshift_deployment_scripts/provision_dashboard/cnsa-cluster-simple-dashboard.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: cnsa-cluster-simple-dashboard
55
labels:
66
app: grafana
7-
namespace: grafana-for-cnsa
87
spec:
98
customFolderName: "examples"
109
allowUiUpdates: true

0 commit comments

Comments
 (0)