77 lines
1.4 KiB
YAML
77 lines
1.4 KiB
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Namespace
|
||
|
metadata:
|
||
|
name: observability
|
||
|
---
|
||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||
|
kind: HelmRepository
|
||
|
metadata:
|
||
|
name: grafana
|
||
|
namespace: flux-system
|
||
|
spec:
|
||
|
url: https://grafana.github.io/helm-charts
|
||
|
interval: 1h
|
||
|
---
|
||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||
|
kind: HelmRelease
|
||
|
metadata:
|
||
|
name: loki
|
||
|
namespace: observability
|
||
|
spec:
|
||
|
interval: 30m
|
||
|
chart:
|
||
|
spec:
|
||
|
chart: loki
|
||
|
version: 6.6.4 # latest as of July 2025
|
||
|
sourceRef:
|
||
|
kind: HelmRepository
|
||
|
name: grafana
|
||
|
namespace: flux-system
|
||
|
install:
|
||
|
createNamespace: true
|
||
|
values:
|
||
|
loki:
|
||
|
auth_enabled: false
|
||
|
singleBinary:
|
||
|
replicas: 1
|
||
|
write:
|
||
|
replicas: 1
|
||
|
read:
|
||
|
replicas: 1
|
||
|
backend:
|
||
|
replicas: 1
|
||
|
---
|
||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||
|
kind: HelmRelease
|
||
|
metadata:
|
||
|
name: grafana
|
||
|
namespace: observability
|
||
|
spec:
|
||
|
interval: 30m
|
||
|
chart:
|
||
|
spec:
|
||
|
chart: grafana
|
||
|
version: 7.3.0 # latest as of July 2025
|
||
|
sourceRef:
|
||
|
kind: HelmRepository
|
||
|
name: grafana
|
||
|
namespace: flux-system
|
||
|
install:
|
||
|
createNamespace: true
|
||
|
values:
|
||
|
adminUser: admin
|
||
|
adminPassword: admin # change this
|
||
|
service:
|
||
|
type: LoadBalancer
|
||
|
datasources:
|
||
|
datasources.yaml:
|
||
|
apiVersion: 1
|
||
|
datasources:
|
||
|
- name: Loki
|
||
|
type: loki
|
||
|
access: proxy
|
||
|
url: http://loki:3100
|
||
|
isDefault: true
|
||
|
|