fuck helm.

This commit is contained in:
j 2025-07-10 20:00:02 +10:00
parent ba63e97b2e
commit c8cd4659a3
25 changed files with 138 additions and 161 deletions

View file

@ -0,0 +1,37 @@
---
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
annotations:
external-dns.alpha.kubernetes.io/hostname: "grafana.hxme.net"
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://loki:3100
isDefault: true

View file

@ -0,0 +1,33 @@
---
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
service:
type: LoadBalancer
annotations:
external-dns.alpha.kubernetes.io/hostname: "loki.hxme.net"
write:
replicas: 1
read:
replicas: 1
backend:
replicas: 1

View file

@ -0,0 +1,40 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: prometheus-community
namespace: flux-system
spec:
url: https://prometheus-community.github.io/helm-charts
interval: 1h
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: prometheus-operator
namespace: monitoring
spec:
interval: 30m
chart:
spec:
chart: kube-prometheus-stack
version: 58.1.2
sourceRef:
kind: HelmRepository
name: prometheus-community
namespace: flux-system
install:
createNamespace: true
upgrade:
disableWait: true
timeout: 5m
values:
prometheus:
prometheusSpec:
serviceMonitorSelectorNilUsesHelmValues: false
# Optional: expose Prometheus/Grafana via NodePort, Ingress, etc.
grafana:
enabled: false
alertmanager:
enabled: true

View file

@ -0,0 +1,22 @@
---
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
---
apiVersion: v1
kind: Secret
metadata:
name: wildcard-hxme-net
namespace: monitoring
annotations:
replicator.v1.mittwald.de/replicate-from: cert-manager/wildcard-hxme-net