Skip to content

grohmio/gke_terraform

Repository files navigation

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

About

deploy kubernetes cluster to gke

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages