The pfSense and TrueNAS procedures are for people, so they no longer load as Claude context. The stack CLAUDE.md files keep only what the code cannot show.
1.3 KiB
1.3 KiB
pfSense: control-plane VIP and HAProxy (one-time setup)
Do this once, before deploying 02-k8s-bootstrap. It creates the address that controlPlaneVipAddress points at.
The @pulumi/pfsense provider used by 01-proxmox-infra doesn't expose Virtual IP or HAProxy resources (only DHCP static mappings, DNS overrides, and firewall aliases), so this is manual, not Pulumi-managed. For why the VIP lives on pfSense at all, see the decision record.
- Confirm
controlPlaneVipAddressfalls outside the DHCP pool (Services → DHCP Server → Range). - Firewall → Virtual IPs → Add: Type =
IP Alias, Interface =LAN, Address =<controlPlaneVipAddress>/32. - System → Package Manager → install
haproxyif not already installed. - Services → HAProxy → Backend: add a pool (e.g.
k3s-apiservers), modeTCP, health checkTCP check(orssl-hello-chk), servers =<master1Ip>:6443,<master2Ip>:6443,<master3Ip>:6443. - Services → HAProxy → Frontend: add a frontend listening on
<controlPlaneVipAddress>:6443, typeTCP(not HTTP — this must stay an opaque passthrough so clients validate k3s's own TLS cert, not one terminated at pfSense), default backend = the pool from step 4. - Services → HAProxy → Settings: enable HAProxy, apply.