homek8s/infrastructure/networking/cilium/values.yaml
Lance Walters 41161d82a1 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.
2026-10-27 00:23:05 -04:00

138 lines
3.8 KiB
YAML

kubeProxyReplacement: true
k8sServiceHost: "10.10.0.2"
k8sServicePort: "6443"
# Let clients outside the cluster (WireGuard spokes: phone, SG VPS, laptop) reach
# ClusterIPs. Renders the ConfigMap key bpf-lb-external-clusterip=true.
bpf:
lbExternalClusterIP: true
l7Proxy: true
socketLB:
enabled: true
hostNamespaceOnly: false
gatewayAPI:
enabled: true
hostNetwork:
enabled: true
nodes:
matchLabels:
node-role.kubernetes.io/gateway: "true"
envoy:
enabled: true
nodeSelector:
node-role.kubernetes.io/gateway: "true"
operator:
replicas: 1
nodeSelector:
kubernetes.io/hostname: siriussec
# Single-node etcd on the T480's PM991 NVMe sees multi-second WAL fsync stalls
# during heavy dind builds (158 samples >8s / 41d). The default 10s renew
# deadline makes the operator fatal ("Leader election lost") on every stall.
# Ride out up to ~45s of apiserver unavailability instead of restarting.
extraArgs:
- --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
operator:
clusterPoolIPv4PodCIDRList:
- 10.244.0.0/16
routingMode: native
autoDirectNodeRoutes: true
ipv4NativeRoutingCIDR: 10.244.0.0/16
enableIPv4Masquerade: true