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.

  • GKE
  • VPC
  • Cloud NAT
  • Terraform modules
  • Kubernetes operators
  • MySQL
  • MinIO
  • NGINX

// 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

Private GKE Cluster with Self-Hosted Chat on Operators flow1. Network module → 2. Cluster module → 3. Node pool module → 4. Operators → 5. Ingress → 6. App resource01Network module02Cluster module03Node pool module04Operators05Ingress06 · GATEApp resource
  1. Network moduleVPC, subnetwork, secondary ranges, router, NAT
  2. Cluster moduleprivate nodes, no basic auth, network policy, VPA
  3. Node pool moduleseparate pool with random suffix for safe replacement
  4. Operatorsdatabase, object store and application operators
  5. IngressNGINX ingress controller
  6. 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.

// Related