Skip to content

Commit d690d0b

Browse files
authored
Merge pull request #103 from Helene/grafana-operator-v5
Add example yaml files for Grafana deployment with grafana-operator-v5
2 parents 3b31bee + 7a926f5 commit d690d0b

File tree

17 files changed

+169
-0
lines changed

17 files changed

+169
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Example deployment of a GrafanaDatasource instance in a k8s/OCP environment
2+
3+
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'
5+
6+
```shell
7+
NAMESPACE=grafana-for-cnsa
8+
```
9+
```shell
10+
echo $NAMESPACE
11+
```
12+
```shell
13+
oc label namespace $NAMESPACE scale.spectrum.ibm.com/networkpolicy=allow
14+
```
15+
```shell
16+
oc adm policy add-cluster-role-to-user ibm-spectrum-scale-operator -z grafana-for-cnsa-sa
17+
```
18+
```shell
19+
oc apply -f bridge-tls-secret-v5.yaml
20+
```
21+
```shell
22+
TLS_CERT=`oc get secret ibm-spectrum-scale-grafana-bridge-service-cert -n ibm-spectrum-scale -o json |jq '.data["tls.crt"]' | tr -d \"`
23+
```
24+
```shell
25+
TLS_KEY=`oc get secret ibm-spectrum-scale-grafana-bridge-service-cert -n ibm-spectrum-scale -o json |jq '.data["tls.key"]' | tr -d \"`
26+
```
27+
```shell
28+
oc get secrets grafana-bridge-tls-cert -n $NAMESPACE -o json \
29+
| jq ".data[\"tls.key\"] |= \"$TLS_KEY\"" | jq ".data[\"tls.crt\"] |= \"$TLS_CERT\""| oc apply -f -
30+
```
31+
```shell
32+
oc apply -f grafana-bridge-datasource-v5.yaml --namespace=$NAMESPACE
33+
```
34+
```shell
35+
oc describe GrafanaDatasource bridge-grafanadatasource --namespace=$NAMESPACE
36+
```
37+
38+
For complete deployment examples please check the project [Wiki](https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana/wiki)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
data:
3+
tls.crt: ''
4+
tls.key: ''
5+
kind: Secret
6+
metadata:
7+
name: grafana-bridge-tls-cert
8+
type: kubernetes.io/tls

0 commit comments

Comments
 (0)