Skip to content

Commit

Permalink
[issue #44] add new instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeiSporyshev committed Dec 16, 2020
1 parent e72b0a0 commit 4c9760a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ The above three dashboards show the number of available / unavailable applicatio

`grafana-cli plugins install devopsprodigy-kubegraf-app` and restart grafana-server.

3. Apply Kubernetes manifests from [kubernetes/](kubernetes/) directory to give
3. Create namespace "kubegraf" and apply Kubernetes manifests from [kubernetes/](kubernetes/) directory to give
required permissions to the user `grafana-kubegraf`:
```
kubectl create ns kubegraf
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/serviceaccount.yaml
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/clusterrole.yaml
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/clusterrolebinding.yaml
Expand All @@ -120,7 +121,7 @@ The above three dashboards show the number of available / unavailable applicatio

Get the token
```
kubectl get secret grafana-kubegraf-secret -o jsonpath={.data.token} | base64 -d
kubectl get secret grafana-kubegraf-secret -o jsonpath={.data.token} -n kubegraf | base64 -d
```

5. Go to /configuration-plugins in Grafana and click on the plugin. Then click “enable”.
Expand Down
5 changes: 3 additions & 2 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ The above three dashboards show the number of available / unavailable applicatio

`grafana-cli plugins install devopsprodigy-kubegraf-app` and restart grafana-server.

3. Apply Kubernetes manifests from [kubernetes/](kubernetes/) directory to give
3. Create namespace "kubegraf" and apply Kubernetes manifests from [kubernetes/](kubernetes/) directory to give
required permissions to the user `grafana-kubegraf`:
```
kubectl create ns kubegraf
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/serviceaccount.yaml
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/clusterrole.yaml
kubectl apply -f https://raw.githubusercontent.com/devopsprodigy/kubegraf/master/kubernetes/clusterrolebinding.yaml
Expand All @@ -120,7 +121,7 @@ The above three dashboards show the number of available / unavailable applicatio

Get the token
```
kubectl get secret grafana-kubegraf-secret -o jsonpath={.data.token} | base64 -d
kubectl get secret grafana-kubegraf-secret -o jsonpath={.data.token} -n kubegraf | base64 -d
```

5. Go to /configuration-plugins in Grafana and click on the plugin. Then click “enable”.
Expand Down

0 comments on commit 4c9760a

Please sign in to comment.