diff --git a/README.md b/README.md index a916c44..664cb7c 100644 --- a/README.md +++ b/README.md @@ -38,15 +38,16 @@ proxmox-infra → k8s-bootstrap → k8s-infra ### 1. proxmox-infra -Provisions a 5-node k3s cluster across two Proxmox hosts, each VM a clone of an Ubuntu Noble (24.04) cloud-image template: +Provisions a 6-node k3s cluster across three Proxmox hosts, each VM a clone of an Ubuntu Noble (24.04) cloud-image template: -| VM | Role | -| --- | --- | -| k3s-master-1 | master | -| k3s-master-2 | master | -| k3s-worker-1 | worker | -| k3s-master-3 | master | -| k3s-worker-2 | worker | +| VM | Role | Proxmox host | +| --- | --- | --- | +| k3s-master-1 | master | pve-b550 | +| k3s-worker-1 | worker | pve-b550 | +| k3s-master-2 | master | pve-esprimo | +| k3s-worker-3 | worker | pve-esprimo | +| k3s-master-3 | master | pve-optiplex | +| k3s-worker-2 | worker | pve-optiplex | It also generates an ED25519 SSH keypair (stored in Pulumi state, public key injected via cloud-init) and registers each VM's MAC address as a DHCPv4 static mapping in pfSense. @@ -54,7 +55,7 @@ It also generates an ED25519 SSH keypair (stored in Pulumi state, public key inj ### 2. k8s-bootstrap -Starts the VMs via the Proxmox API and installs k3s over SSH: `k3s-master-1` initializes the cluster (`--cluster-init`, embedded etcd), `k3s-master-2`/`k3s-master-3` join as additional etcd nodes, and the two workers join as agents. Exports the cluster's `kubeconfig` as a secret for downstream stacks. +Starts the VMs via the Proxmox API and installs k3s over SSH: `k3s-master-1` initializes the cluster (`--cluster-init`, embedded etcd), `k3s-master-2`/`k3s-master-3` join as additional etcd nodes, and the three workers join as agents. Exports the cluster's `kubeconfig` as a secret for downstream stacks. ### 3. k8s-infra @@ -63,7 +64,7 @@ Cluster-level infrastructure via Helm and `@pulumi/kubernetes`: | Component | What it does | | --- | --- | | NFS CSI Driver + `truenas-nfs` StorageClass | Dynamic NFS-backed PVCs from a TrueNAS share | -| Longhorn | Default block storage (`longhorn` StorageClass, 3 replicas) | +| Longhorn | Default block storage (`longhorn` StorageClass, 2 replicas) | | cert-manager + `letsencrypt-prod` ClusterIssuer | TLS certs via Let's Encrypt, DNS-01 through Cloudflare | | kube-vip + kube-vip-cloud-provider | Announces a virtual IP and allocates it to LoadBalancer Services (e.g. Traefik) | @@ -107,8 +108,8 @@ pulumi up --yes Stack-specific notes: 1. **proxmox-infra** — set Proxmox API tokens, pfSense credentials, VM credentials/SSH public key, and a static IP per node. -2. **k8s-bootstrap** — set `k3sToken` (e.g. `openssl rand -hex 32`) and a static IP per node. Proxmox credentials and the SSH key come automatically from `proxmox-infra`. -3. **k8s-infra** — before deploying, create an NFS dataset/share on TrueNAS (POSIX ACLs, `root`/`root` maproot, restricted to your k3s nodes). Set the TrueNAS, Cloudflare, and `kubeVipAddress`/`kubeVipInterface` config. +2. **k8s-bootstrap** — set `k3sToken` (e.g. `openssl rand -hex 32`) and `controlPlaneVipAddress` (secret; a free IP outside the DHCP pool, fronted by pfSense + HAProxy, see [the runbook](docs/runbooks/pfsense-control-plane-vip.md)). Node IPs, Proxmox credentials and the SSH key come automatically from `proxmox-infra`. +3. **k8s-infra** — before deploying, create an NFS dataset/share on TrueNAS (POSIX ACLs, `root`/`root` maproot, restricted to your k3s nodes). Set `truenasHost`, `truenasNfsPath`, `cloudflareApiToken`, `letsencryptEmail`, `kubeVipAddress` (all secrets) and `kubeVipInterface`. 4. **k8s-apps** — set `domain`, the base domain used for ingress hostnames. 5. **monitoring** — set `grafanaAdminPassword`.