File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
examples/simple_regional_with_asm Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ data "google_project" "project" {
28
28
}
29
29
30
30
module "gke" {
31
- source = " ../../modules/beta-public-cluster/"
32
- project_id = var. project_id
33
- name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
34
- regional = true
31
+ source = " ../../modules/beta-public-cluster/"
32
+ project_id = var. project_id
33
+ name = " ${ local . cluster_type } -cluster${ var . cluster_name_suffix } "
34
+ regional = true
35
35
release_channel = " REGULAR"
36
36
region = var. region
37
37
network = var. network
@@ -42,22 +42,22 @@ module "gke" {
42
42
cluster_resource_labels = { " mesh_id" : " proj-${ data . google_project . project . number } " }
43
43
node_pools = [
44
44
{
45
- name = " asm-node-pool"
46
- autoscaling = false
45
+ name = " asm-node-pool"
46
+ autoscaling = false
47
47
# ASM requires minimum 4 nodes and n1-standard-4
48
48
# As this is a regional cluster we have node_count * 3 = 6 nodes
49
- node_count = 2
49
+ node_count = 2
50
50
machine_type = " n1-standard-4"
51
51
},
52
52
]
53
53
}
54
54
55
55
module "asm" {
56
- source = " ../../modules/asm"
57
- cluster_name = module. gke . name
56
+ source = " ../../modules/asm"
57
+ cluster_name = module. gke . name
58
58
cluster_endpoint = module. gke . endpoint
59
- project_id = var. project_id
60
- location = module. gke . location
59
+ project_id = var. project_id
60
+ location = module. gke . location
61
61
}
62
62
63
63
data "google_client_config" "default" {
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ data "google_client_config" "default" {
24
24
}
25
25
26
26
module "asm_install" {
27
- source = " terraform-google-modules/gcloud/google"
28
- version = " ~> 1.0"
27
+ source = " terraform-google-modules/gcloud/google"
28
+ version = " ~> 1.0"
29
29
module_depends_on = [var . cluster_endpoint ]
30
30
31
31
platform = " linux"
You can’t perform that action at this time.
0 commit comments