openbao-helm/terraform
2018-08-18 15:19:09 -07:00
..
modules terraform/gke: clean up kubeconfig better, still not perfect 2018-08-18 15:19:09 -07:00
main.tf Initial commit 2018-08-17 22:08:03 -07:00
README.md Initial commit 2018-08-17 22:08:03 -07:00
variables.tf Initial commit 2018-08-17 22:08:03 -07:00

Terraform

This folder contains a Terraform configuration that can be used to setup an example cluster. These are not meant to be production ready modules for using Consul with Kubernetes.

The pre-requisites for Terraform are:

  • Google Cloud authentication. See Google Application Default Credentials. You may also reuse your gcloud credentials by exposing them as application defaults by running gcloud auth application-default login.
  • gcloud installed and configured locally with GKE components.
  • The following programs available on the PATH: kubectl, helm, grep, xargs.

With that available, run the following:

$ terraform init
$ terraform apply

The apply will ask you for the name of the project to setup the cluster. After this, everything will be setup, your local kubectl credentials will be configured, and you may use helm directly.