Skip to content

Commit 84a6926

Browse files
committed
change readme for kubernetes example
1 parent 53c8701 commit 84a6926

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

examples/kubernetes/README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ This example has been developed and tested using the Kubernetes Engine packaged
1919
<img alt="enabled kubernetes engine in docker" src="../../assets/examples_enable_kubernetes_engine.png">
2020
</p>
2121

22+
## Setup Prometheus and Grafana
23+
1. `cd` into the *scripts* folder and run the setup script with `./setup.sh` - the process of configuring Prometheus and Grafana.
24+
25+
2. In your browser, go to `localhost:32000`, which will be the login page of grafana. Use `admin` as both username and password to login. You can change the password after login.
26+
27+
3. Navigate to `Home -> Administration -> Service accounts`, then click `Add service account` to create an service account. Be sure to choose `Admin` as the role. Then click `Add service account token`, hit `generate`, you are done! Remember this token, you will be using this token to access Grafana HTTP API programmatically.
28+
29+
4. Add a `.env` file to the *server* folder that contains the following key/value pairs:
30+
31+
```
32+
CHRONOS_GRAFANA_API_KEY = Bearer [the access token you created in step 3]
33+
```
2234

2335
## Build the Client
2436
1. `cd` into the *client* folder and run the following command:
@@ -29,7 +41,7 @@ docker build -t frontend:1.0 .
2941

3042

3143
## Build the Server
32-
1. Add a `.env` file to the *server* folder that contains the following key/value pairs:
44+
1. In the `.env` file you just created, add the following key/value pairs as well:
3345

3446
```
3547
CHRONOS_DB = MongoDB or PostgreSQL
@@ -56,9 +68,6 @@ docker build -t backend:1.0 .
5668
## Deploy the Cluster
5769
1. `cd` into the launch folder and run the following commands to start the services and deployments described in the YAML files:
5870
```
59-
kubectl apply -f clusterRole.yml
60-
kubectl apply -f promConfig.yml
61-
kubectl apply -f prometheus.yml
6271
kubectl apply -f backend.yml
6372
kubectl apply -f frontend.yml
6473
```

0 commit comments

Comments
 (0)