- clusters/homek8s/monitoring.yaml: the 'monitoring' Flux Kustomization was declared only under clusters/home, which the bootstrapped flux-system Kustomization never reads (its path is ./clusters/homek8s), so it had never been created. Declare it in the tree that actually reconciles. - monitoring/controllers/home: HelmRepository + HelmRelease (chart pinned 92.14.0), values.yaml via configMapGenerator, Grafana admin from the monitoring/grafana-admin Secret (out of band, never in git). - Everything pinned to siriussec, Prometheus on a 10Gi local-path PVC with 7d AND 8GB retention caps; alertmanager off; no remote write. - internal gateway listener now accepts routes from any namespace; the security boundary is the host firewall, not the namespace. - host-firewall/: nft table + oneshot unit for siriussec and the ufw script for rpi that close :8081 to everything but 10.10.0.0/24 and 10.244.0.0/16.
28 lines
899 B
YAML
28 lines
899 B
YAML
# Grafana is served by the INTERNAL gateway only (gateway-system is the public
|
|
# one, fed by the Cloudflare tunnel). There is no Cloudflare ingress entry for
|
|
# this hostname and there must never be one.
|
|
#
|
|
# Reachable at http://grafana.lab.internal:8081 over WireGuard:
|
|
# Legion /etc/hosts: 10.10.0.2 grafana.lab.internal
|
|
# The listener answers only on 10.10.0.0/24 + the pod CIDR — the host firewall
|
|
# (see docs/internal-wireguard-services.md) drops :8081 everywhere else.
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: grafana
|
|
namespace: monitoring
|
|
spec:
|
|
parentRefs:
|
|
- name: internal
|
|
namespace: internal
|
|
sectionName: http-internal
|
|
hostnames:
|
|
- grafana.lab.internal
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: kube-prometheus-stack-grafana
|
|
port: 80
|