Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradmccoydev/gke
GCP GKE Terraform Example
https://github.com/bradmccoydev/gke
Last synced: 1 day 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-27T14:33:03.000Z (over 2 years ago)
- Last Synced: 2024-06-11T20:41:15.895Z (5 months ago)
- Language: HCL
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- 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: [email protected]
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