Skip to content

Commit 82e3056

Browse files
authored
docs: adjust invalid cluster_maas example DOC-1572 (#563)
* docs: adjust invalid cluster_maas example DOC-1572 * docs: fix extra space DOC-1572
1 parent 96ec649 commit 82e3056

File tree

2 files changed

+46
-20
lines changed

2 files changed

+46
-20
lines changed

docs/resources/cluster_maas.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ resource "spectrocloud_cluster_maas" "cluster" {
3232
cloud_account_id = data.spectrocloud_cloudaccount_maas.account.id
3333
3434
cloud_config {
35-
subscription_id = "subscription-id"
36-
resource_group = "dev"
37-
ssh_key = "ssh key value"
38-
region = "centralus"
35+
domain = "maas.mycompany.com"
3936
}
4037
4138
cluster_profile {
@@ -78,12 +75,28 @@ resource "spectrocloud_cluster_maas" "cluster" {
7875
}
7976
8077
machine_pool {
81-
name = "worker-basic"
82-
count = 1
83-
instance_type = "Standard_DS4"
84-
disk_size_gb = 60
85-
is_system_node_pool = true
86-
storage_account_type = "Standard_LRS"
78+
name = "control-plane"
79+
count = 1
80+
control_plane = true
81+
instance_type {
82+
min_cpu = 8
83+
min_memory_mb = 16000
84+
}
85+
placement {
86+
resource_pool = "Production-Compute-Pool-1"
87+
}
88+
}
89+
90+
machine_pool {
91+
name = "worker-basic"
92+
count = 1
93+
instance_type {
94+
min_cpu = 8
95+
min_memory_mb = 32000
96+
}
97+
placement {
98+
resource_pool = "Production-Compute-Pool-2"
99+
}
87100
}
88101
}
89102
```

templates/resources/cluster_maas.md.tmpl

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ resource "spectrocloud_cluster_maas" "cluster" {
3232
cloud_account_id = data.spectrocloud_cloudaccount_maas.account.id
3333
3434
cloud_config {
35-
subscription_id = "subscription-id"
36-
resource_group = "dev"
37-
ssh_key = "ssh key value"
38-
region = "centralus"
35+
domain = "maas.mycompany.com"
3936
}
4037
4138
cluster_profile {
@@ -78,12 +75,28 @@ resource "spectrocloud_cluster_maas" "cluster" {
7875
}
7976
8077
machine_pool {
81-
name = "worker-basic"
82-
count = 1
83-
instance_type = "Standard_DS4"
84-
disk_size_gb = 60
85-
is_system_node_pool = true
86-
storage_account_type = "Standard_LRS"
78+
name = "control-plane"
79+
count = 1
80+
control_plane = true
81+
instance_type {
82+
min_cpu = 8
83+
min_memory_mb = 16000
84+
}
85+
placement {
86+
resource_pool = "Production-Compute-Pool-1"
87+
}
88+
}
89+
90+
machine_pool {
91+
name = "worker-basic"
92+
count = 1
93+
instance_type {
94+
min_cpu = 8
95+
min_memory_mb = 32000
96+
}
97+
placement {
98+
resource_pool = "Production-Compute-Pool-2"
99+
}
87100
}
88101
}
89102
```

0 commit comments

Comments
 (0)