Skip to content

vaibhav-dhawan/terraform-gcp-gke

 
 

Repository files navigation

CircleCI

Domino GKE Terraform

Terraform module which creates a Domino deployment inside of GCP's GKE.

Usage

Create a Domino development GKE cluster

module "gke_cluster" {
  source  = "github.com/cerebrotech/terraform-gcp-gke"

  cluster = "cluster-name"
}

Create a prod GKE cluster

module "gke_cluster" {
  source   = "github.com/cerebrotech/terraform-gcp-gke"

  cluster  = "cluster-name"
  project  = "gcp-project"
  location = "us-west1"

  # Some more variables may need to be configured to meet specific needs
}

Manual Deployment

  1. Install gcloud and configure the Terraform workspace

    gcloud auth application-default login
    terraform init
    terraform workspace new [your-cluster-name]
    
  2. With the environment setup, you can now apply the terraform module

    terraform apply -auto-approve
    
  3. Be sure to cleanup the cluster after you are done working

    terraform destroy -auto-approve
    

IAM Permissions

The following project IAM permissions must be granted to the provisioning user/service:

  • Cloud KMS Admin
  • Compute Admin
  • Compute Instance Admin (v1)
  • Compute Network Admin
  • Kubernetes Engine Admin
  • DNS Administrator
  • Cloud Filestore Editor
  • Security Admin
  • Service Account Admin
  • Service Account User
  • Storage Admin

It may be possible to lower the "admin" privilage levels to a "creator" level if provisioning cleanup is not required. However, the permissions level for "creator-only" has not been tested. It is assume that a cluster creator can also cleanup (i.e. destroy) the cluster.

Development

Please submit any feature enhancements, bug fixes, or ideas via pull requests or issues.

About

Terraform module for deploying a Domino on GKE

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%