Kubernetes · Freelance
Private GKE Cluster with Self-Hosted Chat on Operators
Modular Terraform builds a private GKE cluster and VPC with Cloud NAT, then installs a chat platform with database and object-store operators.
// Overview
Three modules provide the VPC (secondary ranges, router, reserved NAT addresses), the cluster and the node pool. The cluster uses private nodes, removes the default pool, disables basic auth and enables network policy, vertical autoscaling and optional workload identity. Operators install MySQL, MinIO and the application, behind an NGINX ingress.
// The problem
A self-hosted collaboration platform on a locked-down Kubernetes environment.
// Flow
- Network moduleVPC, subnetwork, secondary ranges, router, NAT
- Cluster moduleprivate nodes, no basic auth, network policy, VPA
- Node pool moduleseparate pool with random suffix for safe replacement
- Operatorsdatabase, object store and application operators
- IngressNGINX ingress controller
- App resource gateinstallation custom resource sized by user count
// Design decisions & guardrails
- Private nodes with NAT for egress; default node pool removed.
- Operators own the stateful dependencies.
- Modules take versions and ranges as variables.
// Outcome
A hardened, repeatable base for stateful self-hosted apps.