Compare commits

..

3 commits

Author SHA1 Message Date
j
6efa45ec9a Split into file each. Change namespace to monitoring. 2025-07-01 22:34:05 +10:00
j
f3b551b8b8 Split into a file each 2025-07-01 22:32:51 +10:00
j
7c65bf49ea Deploy graf + loki 2025-07-01 22:32:15 +10:00
5 changed files with 81 additions and 78 deletions

View file

@ -5,3 +5,6 @@ resources:
- operators/prometheus.yaml
- operators/mariadb.yaml
- dns/bind.yaml
- monitoring/provider.yaml
- monitoring/grafana.yaml
- monitoring/loki.yaml

View file

@ -1,78 +0,0 @@
---
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
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
sourceRef:
kind: HelmRepository
name: grafana
namespace: flux-system
install:
createNamespace: true
values:
admin:
existingSecret: grafana-admin-secret
userKey: admin-user
passwordKey: admin-password
service:
type: LoadBalancer
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://loki:3100
isDefault: true

View file

@ -0,0 +1,35 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: grafana
namespace: monitoring
spec:
interval: 30m
chart:
spec:
chart: grafana
version: 7.3.0
sourceRef:
kind: HelmRepository
name: grafana
namespace: flux-system
install:
createNamespace: true
values:
admin:
existingSecret: grafana-admin-secret
userKey: admin-user
passwordKey: admin-password
service:
type: LoadBalancer
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://loki:3100
isDefault: true

View file

@ -0,0 +1,29 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: loki
namespace: monitoring
spec:
interval: 30m
chart:
spec:
chart: loki
version: 6.6.4
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

View file

@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: grafana
namespace: flux-system
spec:
url: https://grafana.github.io/helm-charts
interval: 1h