|
| 1 | +# Simple Regional Cluster |
| 2 | + |
| 3 | +This example illustrates how to create a simple cluster. |
| 4 | + |
| 5 | +<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 6 | +## Inputs |
| 7 | + |
| 8 | +| Name | Description | Type | Default | Required | |
| 9 | +|------|-------------|------|---------|:--------:| |
| 10 | +| cluster\_name\_suffix | A suffix to append to the default cluster name | `string` | `""` | no | |
| 11 | +| compute\_engine\_service\_account | Service account to associate to the nodes in the cluster | `any` | n/a | yes | |
| 12 | +| enable\_binary\_authorization | Enable BinAuthZ Admission controller | `bool` | `false` | no | |
| 13 | +| ip\_range\_pods | The secondary ip range to use for pods | `any` | n/a | yes | |
| 14 | +| ip\_range\_services | The secondary ip range to use for services | `any` | n/a | yes | |
| 15 | +| network | The VPC network to host the cluster in | `any` | n/a | yes | |
| 16 | +| project\_id | The project ID to host the cluster in | `any` | n/a | yes | |
| 17 | +| region | The region to host the cluster in | `any` | n/a | yes | |
| 18 | +| subnetwork | The subnetwork to host the cluster in | `any` | n/a | yes | |
| 19 | + |
| 20 | +## Outputs |
| 21 | + |
| 22 | +| Name | Description | |
| 23 | +|------|-------------| |
| 24 | +| ca\_certificate | n/a | |
| 25 | +| client\_token | n/a | |
| 26 | +| cluster\_name | Cluster name | |
| 27 | +| ip\_range\_pods | The secondary IP range used for pods | |
| 28 | +| ip\_range\_services | The secondary IP range used for services | |
| 29 | +| kubernetes\_endpoint | n/a | |
| 30 | +| location | n/a | |
| 31 | +| master\_kubernetes\_version | The master Kubernetes version | |
| 32 | +| network | n/a | |
| 33 | +| project\_id | n/a | |
| 34 | +| region | n/a | |
| 35 | +| service\_account | The default service account used for running nodes. | |
| 36 | +| subnetwork | n/a | |
| 37 | +| zones | List of zones in which the cluster resides | |
| 38 | + |
| 39 | +<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 40 | + |
| 41 | +To provision this example, run the following from within this directory: |
| 42 | +- `terraform init` to get the plugins |
| 43 | +- `terraform plan` to see the infrastructure plan |
| 44 | +- `terraform apply` to apply the infrastructure build |
| 45 | +- `terraform destroy` to destroy the built infrastructure |
0 commit comments