My Terraform Charts to deploy GKE Clusters
A simple cluster with one node and workloads.
GKE Cluster
- Nodepool
1 Node (n1-standard-1) - Network
VPC (10.0.0.0/18)
Subnet k8s-pod-range (10.48.0.0/16)
Subnet k8s-service-range (10.52.0.0/16)
NAT Gateway (outbound traffic)
Workloads
- NGINX Ingress Controller (HELM Chart)
Creates also a Load Balancer with a Public IP in GCP - Cert Manager (HELM Chart)
Automatic issuance of SSL-Certificates for Nginx-Ingress Resources
i.e. for the web service in module "testapp" - Test-App (nginx webserver)
simple web app for testing
# initialize terraform modules
terraform init
# login google cloud gcp
gcloud auth login
# edit variables.tf
- whitelist-ips => set to your private IP
- project => set to your gcp project name
# apply terraform chart
terraform apply