File tree 4 files changed +23
-22
lines changed
4 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ jobs:
22
22
- name : Set up Google Cloud SDK
23
23
uses :
google-github-actions/[email protected]
24
24
with :
25
- project_id : code-review-platform-flow
25
+ project_id : gcuflow
26
26
install_components : kubectl
27
27
28
28
- name : Configure kubectl
29
29
run : |
30
- gcloud container clusters get-credentials primary --zone asia-northeast3-a --project code-review-platform-flow
30
+ gcloud container clusters get-credentials primary --zone asia-northeast3-a --project gcuflow
31
31
32
32
- name : Install Helm
33
33
run : |
Original file line number Diff line number Diff line change 1
1
# Google Compute Firewall 설정
2
2
resource "google_compute_firewall" "allow-ssh" {
3
- name = var. firewall_name
3
+ name = var. ssh_firewall_name
4
4
network = google_compute_network. main . name
5
5
6
6
allow {
7
7
protocol = " tcp"
8
8
ports = [" 22" ]
9
9
}
10
10
11
+ source_ranges = var. firewall_source_ranges
12
+ }
13
+
14
+ resource "google_compute_firewall" "allow-http-https" {
15
+ name = var. http_https_firewall_name
16
+ network = google_compute_network. main . name
17
+
18
+ allow {
19
+ protocol = " tcp"
20
+ ports = [" 80" , " 443" ]
21
+ }
22
+
11
23
source_ranges = var. firewall_source_ranges
12
24
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ terraform {
12
12
# Terraform 상태를 저장할 GCS 백엔드 설정
13
13
backend "gcs" {
14
14
# 상태 파일을 저장할 GCS 버킷 이름을 지정합니다.
15
- bucket = " flow-tf -state-staging"
15
+ bucket = " flow-terraform -state-staging"
16
16
17
17
# 상태 파일 경로의 접두사를 지정합니다.
18
18
prefix = " terraform/state"
Original file line number Diff line number Diff line change 1
- variable "gcp_credentials_file" {
2
- description = " Path to the GCP credentials JSON file"
3
- type = string
4
- }
5
-
6
1
variable "vpc_network_name" {
7
2
description = " VPC 네트워크 이름"
8
3
type = string
@@ -132,17 +127,6 @@ variable "gcp_region" {
132
127
type = string
133
128
}
134
129
135
- # Terraform GCS 백엔드 변수
136
- variable "tf_state_bucket" {
137
- description = " Terraform 상태 파일을 저장할 GCS 버킷 이름"
138
- type = string
139
- }
140
-
141
- variable "tf_state_prefix" {
142
- description = " Terraform 상태 파일 경로의 접두사"
143
- type = string
144
- }
145
-
146
130
# Kubernetes 클러스터 서비스 계정 변수
147
131
variable "kubernetes_service_account_id" {
148
132
description = " Kubernetes 클러스터 서비스 계정 ID"
@@ -238,8 +222,13 @@ variable "master_ipv4_cidr_block" {
238
222
}
239
223
240
224
# Google Compute Firewall 변수
241
- variable "firewall_name" {
242
- description = " 방화벽 규칙 이름"
225
+ variable "ssh_firewall_name" {
226
+ description = " ssh 방화벽 규칙 이름"
227
+ type = string
228
+ }
229
+
230
+ variable "http_https_firewall_name" {
231
+ description = " http https 방화벽 규칙 이름"
243
232
type = string
244
233
}
245
234
You can’t perform that action at this time.
0 commit comments