|
| 1 | +# Simple Regional Cluster |
| 2 | + |
| 3 | +This example illustrates how to create a simple private cluster with beta features. |
| 4 | + |
| 5 | +[^]: (autogen_docs_start) |
| 6 | + |
| 7 | +## Inputs |
| 8 | + |
| 9 | +| Name | Description | Type | Default | Required | |
| 10 | +|------|-------------|:----:|:-----:|:-----:| |
| 11 | +| cloudrun | Boolean to enable / disable CloudRun | string | `"true"` | no | |
| 12 | +| cluster\_name\_suffix | A suffix to append to the default cluster name | string | `""` | no | |
| 13 | +| compute\_engine\_service\_account | Service account to associate to the nodes in the cluster | string | n/a | yes | |
| 14 | +| credentials\_path | The path to the GCP credentials JSON file | string | n/a | yes | |
| 15 | +| ip\_range\_pods | The secondary ip range to use for pods | string | n/a | yes | |
| 16 | +| ip\_range\_services | The secondary ip range to use for pods | string | n/a | yes | |
| 17 | +| istio | Boolean to enable / disable Istio | string | `"true"` | no | |
| 18 | +| network | The VPC network to host the cluster in | string | n/a | yes | |
| 19 | +| project\_id | The project ID to host the cluster in | string | n/a | yes | |
| 20 | +| region | The region to host the cluster in | string | n/a | yes | |
| 21 | +| subnetwork | The subnetwork to host the cluster in | string | n/a | yes | |
| 22 | + |
| 23 | +## Outputs |
| 24 | + |
| 25 | +| Name | Description | |
| 26 | +|------|-------------| |
| 27 | +| ca\_certificate | | |
| 28 | +| client\_token | | |
| 29 | +| cluster\_name | Cluster name | |
| 30 | +| credentials\_path | | |
| 31 | +| ip\_range\_pods | The secondary IP range used for pods | |
| 32 | +| ip\_range\_services | The secondary IP range used for services | |
| 33 | +| kubernetes\_endpoint | | |
| 34 | +| location | | |
| 35 | +| master\_kubernetes\_version | The master Kubernetes version | |
| 36 | +| network | | |
| 37 | +| project\_id | | |
| 38 | +| region | | |
| 39 | +| service\_account | The service account to default running nodes as if not overridden in `node_pools`. | |
| 40 | +| subnetwork | | |
| 41 | +| zones | List of zones in which the cluster resides | |
| 42 | + |
| 43 | +[^]: (autogen_docs_end) |
| 44 | + |
| 45 | +To provision this example, run the following from within this directory: |
| 46 | +- `terraform init` to get the plugins |
| 47 | +- `terraform plan` to see the infrastructure plan |
| 48 | +- `terraform apply` to apply the infrastructure build |
| 49 | +- `terraform destroy` to destroy the built infrastructure |
0 commit comments