OpenTofu libvirt module (k3s-dev NAT 10.73.0.0/24, 3x 6GiB/4vCPU VMs, 20G OS +
40G thin data, host-passthrough), cloud-init baseline (k3s/Cilium/Longhorn
prereqs, static net), Ansible k3s-HA + Cilium (kube-proxy replacement, Gateway
API, Hubble; flannel/kube-proxy/Traefik disabled). PM fix: escape ${...} in a
cloud-init template comment (tofu templatefile parse). tofu fmt/init/validate =
Success; ansible --syntax-check + yamllint pass. NOTHING executed (no apply).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
41 lines
1.2 KiB
Django/Jinja
41 lines
1.2 KiB
Django/Jinja
# Cilium Helm values — rendered by the Ansible bootstrap (T-1.3).
|
|
# PARITY CONTRACT (docs/02): the fields marked [parity] MUST equal the
|
|
# platform/cilium HelmRelease values, or Flux and the bootstrap fight over the CNI.
|
|
---
|
|
# [parity] k3s kube-proxy is disabled → Cilium replaces it (ADR-0001/0002).
|
|
kubeProxyReplacement: true
|
|
# [parity] = the k3s API endpoint (primary node IP). The Flux HelmRelease's
|
|
# k8sServiceHost "REPLACE-ME" must be set to this same value.
|
|
k8sServiceHost: "{{ k3s_api_host }}"
|
|
k8sServicePort: {{ k3s_api_port }}
|
|
|
|
# Ingress via Gateway API — no Traefik (docs/09, ADR-0002).
|
|
gatewayAPI:
|
|
enabled: true
|
|
|
|
# Egress-class steering (ADR-0002; VPN model ADR-0013, Phase 2/3).
|
|
egressGateway:
|
|
enabled: true
|
|
|
|
# Flow observability / isolation audit (ADR-0002).
|
|
hubble:
|
|
enabled: true
|
|
relay:
|
|
enabled: true
|
|
ui:
|
|
enabled: true
|
|
|
|
# Ingress VIP announcement on the NAT LAN. IP pool / CiliumL2AnnouncementPolicy
|
|
# (from the reserved 10.73.0.240-.250 range) is authored by WS-NET in Phase 2.
|
|
l2announcements:
|
|
enabled: true
|
|
|
|
# k3s ships its own cgroup mount; point Cilium at it instead of auto-mounting.
|
|
cgroup:
|
|
autoMount:
|
|
enabled: false
|
|
hostRoot: /run/cilium/cgroupv2
|
|
|
|
operator:
|
|
replicas: {{ cilium_operator_replicas }}
|