You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example illustrates how to create a simple cluster and register it with [Anthos](https://cloud.google.com/anthos/multicluster-management/environs)
4
+
5
+
It incorporates the standard cluster module and the [Hub registration module](../../modules/hub).
6
+
7
+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
8
+
## Inputs
9
+
10
+
| Name | Description | Type | Default | Required |
11
+
|------|-------------|:----:|:-----:|:-----:|
12
+
| cluster\_name\_suffix | A suffix to append to the default cluster name | string |`""`| no |
13
+
| ip\_range\_pods | The secondary ip range to use for pods | string |`""`| no |
14
+
| ip\_range\_services | The secondary ip range to use for services | string |`""`| no |
15
+
| network | The VPC network to host the cluster in | string |`"default"`| no |
16
+
| project\_id | The project ID to host the cluster in | string | n/a | yes |
17
+
| region | The region to host the cluster in | string | n/a | yes |
18
+
| subnetwork | The subnetwork to host the cluster in | string |`"default"`| no |
19
+
| zones | The zone to host the cluster in (required if is a zonal cluster) | list(string) | n/a | yes |
20
+
21
+
## Outputs
22
+
23
+
| Name | Description |
24
+
|------|-------------|
25
+
| ca\_certificate ||
26
+
| client\_token ||
27
+
| cluster\_name | Cluster name |
28
+
| ip\_range\_pods | The secondary IP range used for pods |
29
+
| ip\_range\_services | The secondary IP range used for services |
30
+
| kubernetes\_endpoint ||
31
+
| location ||
32
+
| master\_kubernetes\_version | The master Kubernetes version |
33
+
| network ||
34
+
| project\_id ||
35
+
| region ||
36
+
| service\_account | The default service account used for running nodes. |
37
+
| subnetwork ||
38
+
| zones | List of zones in which the cluster resides |
39
+
40
+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
41
+
42
+
To provision this example, run the following from within this directory:
43
+
-`terraform init` to get the plugins
44
+
-`terraform plan` to see the infrastructure plan
45
+
-`terraform apply` to apply the infrastructure build
46
+
-`terraform destroy` to destroy the built infrastructure
0 commit comments