Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.14 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.14 KB

gke_terraform

Setup

This steps are mandatory to create a gke cluster in a gcp project.

Prerequisits

Setup

  • after creating service account save your key file *.json in folder .keys

  • add credentials to terrafaorm via environment variable, for use github actions make sure to have GOOGLE_APPLICATION_CREDENTIALS as secret

export GOOGLE_APPLICATION_CREDENTIALS=*.json
  • change projectid in file terraform.tfvars

Init

$ terraform init --reconfigure

Deploy

  • validate
$ terraform validate
  • plan
$ terraform plan -out "planfile"
  • apply
$ terraform apply "planfile"
  • destroy
$ terraform destroy

Further readings