Skip to content

butschi84/terraform-gke

Repository files navigation

terraform-gke

My Terraform Charts to deploy GKE Clusters

One-Node-Cluster with Workloads

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

cluster

Usage

# 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

About

My Terraform Charts to deploy GKE Clusters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages