https://github.com/bradmccoydev/gke
GCP GKE Terraform Example
https://github.com/bradmccoydev/gke
Last synced: 3 months ago
JSON representation
GCP GKE Terraform Example
- Host: GitHub
- URL: https://github.com/bradmccoydev/gke
- Owner: bradmccoydev
- License: apache-2.0
- Created: 2021-12-12T22:34:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-27T14:33:03.000Z (about 4 years ago)
- Last Synced: 2025-10-20T02:40:19.467Z (8 months ago)
- Language: HCL
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# GCP GKE Demo
# Requirements
terraform installed
gcloud installed with google cloud account
# Owner: brad@odysseycloud.io
State is stored in the following location:
Bucket: oc-devops-dev
Prefix: terraform/state/demo
** Delete .terraform folder first and lock file. **
gcloud auth login (DevOps account)
sudo sh setup-gcp-project.sh
chmod +x provision-gcp.json
# Must be in root directory of project
cd src && terraform init -var-file=deployment/demo.tfvars
terraform plan -var-file=deployment/hugdemo.tfvars
terraform apply -var-file=deployment/hugdemo.tfvars
# Danger Zone
terraform destroy -var-file=deployment/demo.tfvars
# Connect to cluster
gcloud container clusters get-credentials devops-usw1-dev --project oc-devops-dev --region us-west1-a