This repository contains a Terraform project that builds a Google Kubernetes Engine cluster with a custom node pool.
- Terraform >= 0.9.0
- gcloud-sdk
- kubernetes-cli
- Enable the GKE API,
- Create a service account,
terraform init
to fetch the relevant plug-ins,terraform apply
to build the cluster,gcloud config set project terraform-gke
set the current project,gcloud container clusters list
(to list clusters),gcloud container clusters get-credentials gke-example
to setupkubeconfig
,
Now you can access your cluster using the Kubernetes CLI: kubectl cluster-info
.
Copyright (c) 2018 Nick Charlton nick@nickcharlton.net.