Skip to content

A Terraform example which demos Google Kubernetes Engine

License

Notifications You must be signed in to change notification settings

alexnuttinck/terraform-gke

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

terraform-gke

This repository contains a Terraform project that builds a Google Kubernetes Engine cluster with a custom node pool.

Requirements

Usage

  1. Enable the GKE API,
  2. Create a service account,
  3. terraform init to fetch the relevant plug-ins,
  4. terraform apply to build the cluster,
  5. gcloud config set project terraform-gke set the current project,
  6. gcloud container clusters list (to list clusters),
  7. gcloud container clusters get-credentials gke-example to setup kubeconfig,

Now you can access your cluster using the Kubernetes CLI: kubectl cluster-info.

Author

Copyright (c) 2018 Nick Charlton nick@nickcharlton.net.

About

A Terraform example which demos Google Kubernetes Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%