docs: move setup runbooks and the control-plane VIP decision into docs

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.
This commit is contained in:
kasun committed 2026-10-03 00:17:14 +02:00
1 parent c08f9df9af
commit 812d1ba1c5
8 files changed
+60 -43

No files matched your search

+1 -10
View File
@@ -1,7 +1,5 @@
# k8s-infra
This file provides guidance to Claude Code when working in `03-k8s-infra`. See the [repo-root CLAUDE.md](../CLAUDE.md) for shared conventions, deployment order, and CI/CD.
Cluster-level infrastructure for the k3s homelab cluster, deployed via Helm and `@pulumi/kubernetes`. Reads `kubeconfig` from `k8s-bootstrap` via StackReference.
## Common Commands
@@ -41,14 +39,7 @@ pulumi config set kubeVipInterface <e.g. eth0>
`kubeconfig` is read automatically via StackReference — do not set it here.
## TrueNAS one-time setup (before deploying)
1. Create dataset `pool/k8s`
2. Add an NFS share for that dataset:
- ACL type: POSIX/generic Unix permissions (not SMB/NFSv4 ACLs) on TrueNAS SCALE
- Maproot User / Group: `root` / `root`
- Allowed Hosts/Networks: restrict to the k3s node IPs/CIDR
3. In Network → Allowed Networks, permit your LAN subnet (e.g. `192.168.1.0/24`)
The TrueNAS dataset and NFS share must exist before deploying; they are created by hand, see [the runbook](../docs/runbooks/truenas-nfs.md).
## CI/CD