alexnuttinck / terraform-gke

A Terraform example which demos Google Kubernetes Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:HCL 100.0%