File tree Expand file tree Collapse file tree 18 files changed +43
-8
lines changed Expand file tree Collapse file tree 18 files changed +43
-8
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,10 @@ data "google_client_config" "default" {}
35
35
module "gke" {
36
36
source = " ../../"
37
37
project_id = " ${ var . project_id } "
38
- name = " ${ local . cluster_type } -cluster"
38
+ name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
39
39
region = " ${ var . region } "
40
40
network = " ${ var . network } "
41
- subnetwork = " ${ var . subnetwork } "
42
- ip_range_pods = " ${ var . ip_range_pods } "
41
+ subnetwork = " ${ var . subnetwork } " ip_range_pods = " ${ var . ip_range_pods } "
43
42
ip_range_services = " ${ var . ip_range_services } "
44
43
kubernetes_version = " 1.11.5-gke.4"
45
44
service_account = " ${ var . compute_engine_service_account } "
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ variable "credentials_path" {
22
22
description = " The path to the GCP credentials JSON file"
23
23
}
24
24
25
+ variable "cluster_name_suffix" {
26
+ description = " A suffix to append to the default cluster name"
27
+ default = " "
28
+ }
29
+
25
30
variable "region" {
26
31
description = " The region to host the cluster in"
27
32
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ provider "google" {
26
26
module "gke" {
27
27
source = " ../../"
28
28
project_id = " ${ var . project_id } "
29
- name = " ${ local . cluster_type } -cluster"
29
+ name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
30
30
region = " ${ var . region } "
31
31
network = " ${ var . network } "
32
32
subnetwork = " ${ var . subnetwork } "
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ variable "credentials_path" {
22
22
description = " The path to the GCP credentials JSON file"
23
23
}
24
24
25
+ variable "cluster_name_suffix" {
26
+ description = " A suffix to append to the default cluster name"
27
+ default = " "
28
+ }
29
+
25
30
variable "region" {
26
31
description = " The region to host the cluster in"
27
32
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ provider "google" {
26
26
module "gke" {
27
27
source = " ../../"
28
28
project_id = " ${ var . project_id } "
29
- name = " ${ local . cluster_type } -cluster"
29
+ name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
30
30
region = " ${ var . region } "
31
31
network = " ${ var . network } "
32
32
network_project_id = " ${ var . network_project_id } "
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ variable "credentials_path" {
22
22
description = " The path to the GCP credentials JSON file"
23
23
}
24
24
25
+ variable "cluster_name_suffix" {
26
+ description = " A suffix to append to the default cluster name"
27
+ default = " "
28
+ }
29
+
25
30
variable "region" {
26
31
description = " The region to host the cluster in"
27
32
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ provider "google" {
26
26
module "gke" {
27
27
source = " ../../"
28
28
project_id = " ${ var . project_id } "
29
- name = " ${ local . cluster_type } -cluster"
29
+ name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
30
30
regional = true
31
31
region = " ${ var . region } "
32
32
network = " ${ var . network } "
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ variable "credentials_path" {
22
22
description = " The path to the GCP credentials JSON file"
23
23
}
24
24
25
+ variable "cluster_name_suffix" {
26
+ description = " A suffix to append to the default cluster name"
27
+ default = " "
28
+ }
29
+
25
30
variable "region" {
26
31
description = " The region to host the cluster in"
27
32
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ provider "google" {
26
26
module "gke" {
27
27
source = " ../../"
28
28
project_id = " ${ var . project_id } "
29
- name = " ${ local . cluster_type } -cluster"
29
+ name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
30
30
regional = false
31
31
region = " ${ var . region } "
32
32
zones = " ${ var . zones } "
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ variable "credentials_path" {
22
22
description = " The path to the GCP credentials JSON file"
23
23
}
24
24
25
+ variable "cluster_name_suffix" {
26
+ description = " A suffix to append to the default cluster name"
27
+ default = " "
28
+ }
29
+
25
30
variable "region" {
26
31
description = " The region to host the cluster in"
27
32
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ provider "google" {
26
26
module "gke" {
27
27
source = " ../../"
28
28
project_id = " ${ var . project_id } "
29
- name = " ${ local . cluster_type } -cluster"
29
+ name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
30
30
region = " ${ var . region } "
31
31
network = " ${ var . network } "
32
32
subnetwork = " ${ var . subnetwork } "
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ variable "credentials_path" {
22
22
description = " The path to the GCP credentials JSON file"
23
23
}
24
24
25
+ variable "cluster_name_suffix" {
26
+ description = " A suffix to append to the default cluster name"
27
+ default = " "
28
+ }
29
+
25
30
variable "region" {
26
31
description = " The region to host the cluster in"
27
32
}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module "example" {
19
19
20
20
project_id = " ${ var . project_id } "
21
21
credentials_path = " ${ local . credentials_path } "
22
+ cluster_name_suffix = " -${ random_string . suffix . result } "
22
23
region = " ${ var . region } "
23
24
network = " ${ google_compute_network . main . name } "
24
25
subnetwork = " ${ google_compute_subnetwork . main . name } "
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module "example" {
19
19
20
20
project_id = " ${ var . project_id } "
21
21
credentials_path = " ${ local . credentials_path } "
22
+ cluster_name_suffix = " -${ random_string . suffix . result } "
22
23
region = " ${ var . region } "
23
24
network = " ${ google_compute_network . main . name } "
24
25
subnetwork = " ${ google_compute_subnetwork . main . name } "
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module "example" {
19
19
20
20
project_id = " ${ var . project_id } "
21
21
credentials_path = " ${ local . credentials_path } "
22
+ cluster_name_suffix = " -${ random_string . suffix . result } "
22
23
region = " ${ var . region } "
23
24
network = " ${ google_compute_network . main . name } "
24
25
network_project_id = " ${ var . project_id } "
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module "example" {
19
19
20
20
project_id = " ${ var . project_id } "
21
21
credentials_path = " ${ local . credentials_path } "
22
+ cluster_name_suffix = " -${ random_string . suffix . result } "
22
23
region = " ${ var . region } "
23
24
network = " ${ google_compute_network . main . name } "
24
25
subnetwork = " ${ google_compute_subnetwork . main . name } "
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module "example" {
19
19
20
20
project_id = " ${ var . project_id } "
21
21
credentials_path = " ${ local . credentials_path } "
22
+ cluster_name_suffix = " -${ random_string . suffix . result } "
22
23
region = " ${ var . region } "
23
24
zones = [" ${ var . zones } " ]
24
25
network = " ${ google_compute_network . main . name } "
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module "example" {
19
19
20
20
project_id = " ${ var . project_id } "
21
21
credentials_path = " ${ local . credentials_path } "
22
+ cluster_name_suffix = " -${ random_string . suffix . result } "
22
23
region = " ${ var . region } "
23
24
network = " ${ google_compute_network . main . name } "
24
25
subnetwork = " ${ google_compute_subnetwork . main . name } "
You can’t perform that action at this time.
0 commit comments