2025-07-01 22:28:20 +10:00
|
|
|
---
|
|
|
|
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
|
2025-07-01 22:31:51 +10:00
|
|
|
version: 6.6.4
|
2025-07-01 22:28:20 +10:00
|
|
|
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
|
2025-07-01 22:31:51 +10:00
|
|
|
version: 7.3.0
|
2025-07-01 22:28:20 +10:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: grafana
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
createNamespace: true
|
|
|
|
values:
|
2025-07-01 22:31:51 +10:00
|
|
|
admin:
|
|
|
|
existingSecret: grafana-admin-secret
|
|
|
|
userKey: admin-user
|
|
|
|
passwordKey: admin-password
|
2025-07-01 22:28:20 +10:00
|
|
|
service:
|
|
|
|
type: LoadBalancer
|
|
|
|
datasources:
|
|
|
|
datasources.yaml:
|
|
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
|
|
- name: Loki
|
|
|
|
type: loki
|
|
|
|
access: proxy
|
|
|
|
url: http://loki:3100
|
|
|
|
isDefault: true
|
|
|
|
|