Skip to content

Commit 61899a5

Browse files
feat: terraform files to create GKE cluster with loadbalancer
1 parent c237aae commit 61899a5

File tree

5 files changed

+452
-0
lines changed

5 files changed

+452
-0
lines changed
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Create new GKE cluster"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
create-cluster:
8+
name: "Terraform create GKE cluster"
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
shell: bash
13+
working-directory: ./gke-terraform-config
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- uses: hashicorp/setup-terraform@v3
18+
with:
19+
terraform_version: "1.8.2"
20+
- name: Terrafrom add secrets to var file
21+
- name: Terraform fmt
22+
id: fmt
23+
run: terraform fmt -check
24+
continue-on-error: true
25+
26+
- name: Terraform Init
27+
id: init
28+
run: terraform init
29+
30+
- name: Terraform Validate
31+
id: validate
32+
run: terraform validate -no-color
33+
34+
- name: Terraform Plan
35+
id: plan
36+
run: terraform plan -no-color
37+
- name: Terraform apply
38+
id: apply
39+
run: terraform apply -no-color -auto-approve

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@ e2e-test-report/
5656
pg_values.yaml
5757

5858
*secret.yaml
59+
*.tfvars
60+
*.tfstate
61+
*.tfstate.*
62+
**/.terraform/*
63+
# Crash log files
64+
crash.log
65+
crash.*.log

gke-terraform-config/.terraform.lock.hcl

+146
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)