Skip to content

Commit fc486ed

Browse files
committed
Replace deprecated loki-stack with loki+promtail helm charts
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
1 parent 5274d23 commit fc486ed

File tree

5 files changed

+95
-35
lines changed

5 files changed

+95
-35
lines changed

monitoring/controllers/loki-stack/release.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

monitoring/controllers/loki-stack/kustomization.yaml renamed to monitoring/controllers/loki/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ kind: Kustomization
33
namespace: monitoring
44
resources:
55
- repository.yaml
6-
- release.yaml
6+
- loki_release.yaml
7+
- promtail_release.yaml
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
apiVersion: helm.toolkit.fluxcd.io/v2beta2
2+
kind: HelmRelease
3+
metadata:
4+
name: loki
5+
spec:
6+
interval: 5m
7+
dependsOn:
8+
- name: kube-prometheus-stack
9+
chart:
10+
spec:
11+
version: "5.x"
12+
chart: loki
13+
sourceRef:
14+
kind: HelmRepository
15+
name: grafana-charts
16+
interval: 60m
17+
# https://github.com/grafana/loki/blob/main/production/helm/loki/values.yaml
18+
values:
19+
loki:
20+
auth_enabled: false
21+
serviceMonitor:
22+
enabled: true
23+
labels:
24+
app.kubernetes.io/part-of: kube-prometheus-stack
25+
commonConfig:
26+
replication_factor: 1
27+
storage:
28+
type: 'filesystem'
29+
table_manager:
30+
retention_deletes_enabled: true
31+
retention_period: 12h
32+
gateway:
33+
enabled: true
34+
singleBinary:
35+
replicas: 1
36+
# Monitoring section determines which monitoring features to enable
37+
monitoring:
38+
# Dashboards for monitoring Loki
39+
dashboards:
40+
# -- If enabled, create configmap with dashboards for monitoring Loki
41+
enabled: false
42+
selfMonitoring:
43+
enabled: false
44+
grafanaAgent:
45+
installOperator: false
46+
# The Loki canary pushes logs to and queries from this loki installation
47+
# to test that it's working correctly
48+
lokiCanary:
49+
enabled: false
50+
# -- Section for configuring optional Helm test
51+
test:
52+
enabled: false
53+
extraObjects:
54+
- apiVersion: v1
55+
kind: ConfigMap
56+
metadata:
57+
name: loki-datasource
58+
labels:
59+
app: loki
60+
chart: loki
61+
release: loki
62+
grafana_datasource: "1"
63+
app.kubernetes.io/part-of: kube-prometheus-stack
64+
data:
65+
loki-datasource.yaml: |-
66+
apiVersion: 1
67+
datasources:
68+
- name: Loki
69+
type: loki
70+
access: proxy
71+
url: http://loki:{{ .Values.loki.server.http_listen_port }}
72+
version: 1
73+
isDefault: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: helm.toolkit.fluxcd.io/v2beta2
2+
kind: HelmRelease
3+
metadata:
4+
name: promtail
5+
spec:
6+
interval: 5m
7+
dependsOn:
8+
- name: kube-prometheus-stack
9+
chart:
10+
spec:
11+
version: "6.x"
12+
chart: promtail
13+
sourceRef:
14+
kind: HelmRepository
15+
name: grafana-charts
16+
interval: 60m
17+
# https://github.com/grafana/helm-charts/blob/main/charts/promtail/values.yaml
18+
values:
19+
test:
20+
enabled: false
File renamed without changes.

0 commit comments

Comments
 (0)