hubble: relay + UI enabled via cilium values, WG-only UI route, hubble/operator metrics scraped

- values: hubble.relay.enabled + hubble.ui.enabled (1 replica each, pinned to
  siriussec, modest requests/limits), hubble.metrics list (flow/drop/tcp/
  port-distribution/icmp/httpV2/dns) + ServiceMonitors labelled
  release=kube-prometheus-stack for agent, relay and operator (:9963).
  prometheus.serviceMonitor.trustCRDsExist because the CRDs come from the
  separate monitoring release.
- hubble.metrics.dashboards: chart's Hubble dashboards into Grafana via the
  grafana_dashboard sidecar label.
- HTTPRoute hubble-ui in kube-system on Gateway internal/internal#http-internal
  (port 8081) for hostname hubble.lab.internal. No public hostname, no tunnel
  ingress entry; the host firewall on 8081 is the boundary.
This commit is contained in:
Lance Walters 2026-10-27 00:23:05 -04:00
commit 41161d82a1
3 changed files with 111 additions and 0 deletions

View file

@ -39,6 +39,92 @@ operator:
- --leader-election-lease-duration=60s
- --leader-election-renew-deadline=45s
- --leader-election-resource-lock-timeout=20s
# Scrape the operator (:9963). Enabling the ServiceMonitor also renders the
# `cilium-operator` Service that backs it. The `release` label is what the
# kube-prometheus-stack Prometheus CR selects on (serviceMonitorSelector).
prometheus:
enabled: true
serviceMonitor:
enabled: true
labels:
release: kube-prometheus-stack
# The ServiceMonitors below are rendered from this chart (hubble + operator).
# The chart refuses to render them unless either the monitoring.coreos.com/v1
# CRDs are detected at install time or this flag is set; the CRDs come from the
# `monitoring` Flux Kustomization, which is a separate release with its own
# ordering, so assert them rather than depend on reconcile order.
prometheus:
serviceMonitor:
trustCRDsExist: true
hubble:
# Flow/Forensics UI is reachable over WireGuard only via the internal Gateway
# (hostname hubble.lab.internal, port 8081) — see docs/internal-wireguard-services.md.
# Neither relay nor UI gets a public hostname or a tunnel ingress entry.
relay:
enabled: true
replicas: 1
nodeSelector:
kubernetes.io/hostname: siriussec
resources:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 200m
memory: 256Mi
prometheus:
enabled: true
serviceMonitor:
enabled: true
labels:
release: kube-prometheus-stack
ui:
enabled: true
replicas: 1
nodeSelector:
kubernetes.io/hostname: siriussec
backend:
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 128Mi
frontend:
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 128Mi
metrics:
# Agent-side hubble_* counters on :9965. `enabled` is a LIST in the 1.20
# chart schema (not a boolean): the metric names to enable. flow/drop carry
# the policy-verdict labels because hubble-network-policy-correlation is on.
# hostPort on every node — metrics only, no UI.
enabled:
- flow
- drop
- tcp
- port-distribution
- icmp
- httpV2
- dns
serviceMonitor:
enabled: true
labels:
release: kube-prometheus-stack
dashboards:
# Chart's own "Hubble Metrics and Monitoring" dashboard (38 panels:
# flows, drops, policy verdicts, TCP, DNS). Loaded by the Grafana
# dashboard sidecar (NAMESPACE=ALL, label grafana_dashboard).
enabled: true
label: grafana_dashboard
labelValue: "1"
ipam:
mode: cluster-pool