Skip to content

Commit 60888a7

Browse files
fix(post): added helm update and install
1 parent 4559816 commit 60888a7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

_posts/2021-11-20-grafana-loki-kubernetes.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ Think of `helm` as a package manager for kubernetes. It'a an easy way to bundle
1414

1515
## Installing Loki Stack
1616

17+
First add Loki's chart repository to `helm`
18+
19+
```bash
20+
helm repo add grafana https://grafana.github.io/helm-charts
21+
```
22+
23+
The update the chart repository
24+
25+
```bash
26+
helm repo add grafana https://grafana.github.io/helm-charts
27+
```
28+
1729
This command will:
1830

1931
* install grafana
@@ -99,3 +111,11 @@ query all logs from the `pod` label of `uptime-kuma-8d45g32fd-lk8rl`
99111
```
100112

101113
Read more about LogQL [here](https://grafana.com/docs/loki/latest/logql/)
114+
115+
## Upgrading Loki Stack
116+
117+
To upgrade, you run the same command you use to install it
118+
119+
```bash
120+
helm upgrade --install loki grafana/loki-stack --set grafana.enabled=true,prometheus.enabled=true,prometheus.alertmanager.persistentVolume.enabled=false,prometheus.server.persistentVolume.enabled=false,loki.persistence.enabled=true,loki.persistence.storageClassName=nfs-client,loki.persistence.size=5Gi
121+
```

0 commit comments

Comments
 (0)