docs: correct cluster size, Longhorn replicas and config keys in README
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 2m15s
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 37s
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 48s
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 39s
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 39s
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 2m15s
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 37s
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 48s
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 39s
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 39s
This commit is contained in:
1 parent
897813a916
commit
739e0ff111
1 file changed
+13
-12
@@ -38,15 +38,16 @@ proxmox-infra → k8s-bootstrap → k8s-infra
|
|||||||
|
|
||||||
### 1. proxmox-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 |
|
| VM | Role | Proxmox host |
|
||||||
| --- | --- |
|
| --- | --- | --- |
|
||||||
| k3s-master-1 | master |
|
| k3s-master-1 | master | pve-b550 |
|
||||||
| k3s-master-2 | master |
|
| k3s-worker-1 | worker | pve-b550 |
|
||||||
| k3s-worker-1 | worker |
|
| k3s-master-2 | master | pve-esprimo |
|
||||||
| k3s-master-3 | master |
|
| k3s-worker-3 | worker | pve-esprimo |
|
||||||
| k3s-worker-2 | worker |
|
| 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.
|
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
|
### 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
|
### 3. k8s-infra
|
||||||
|
|
||||||
@@ -63,7 +64,7 @@ Cluster-level infrastructure via Helm and `@pulumi/kubernetes`:
|
|||||||
| Component | What it does |
|
| Component | What it does |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| NFS CSI Driver + `truenas-nfs` StorageClass | Dynamic NFS-backed PVCs from a TrueNAS share |
|
| 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 |
|
| 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) |
|
| 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:
|
Stack-specific notes:
|
||||||
|
|
||||||
1. **proxmox-infra** — set Proxmox API tokens, pfSense credentials, VM credentials/SSH public key, and a static IP per node.
|
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`.
|
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 the TrueNAS, Cloudflare, and `kubeVipAddress`/`kubeVipInterface` config.
|
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.
|
4. **k8s-apps** — set `domain`, the base domain used for ingress hostnames.
|
||||||
5. **monitoring** — set `grafanaAdminPassword`.
|
5. **monitoring** — set `grafanaAdminPassword`.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user