This example illustrates how to create a simple cluster with beta features.
Name | Description | Type | Default | Required |
---|---|---|---|---|
project_id | The project ID to host the cluster in | any |
n/a | yes |
region | The region the cluster in | string |
"us-central1" |
no |
Name | Description |
---|---|
ca_certificate | The cluster ca certificate (base64 encoded) |
cluster_name | Cluster name |
kubernetes_endpoint | The cluster endpoint |
location | n/a |
master_kubernetes_version | Kubernetes version of the master |
network_name | The name of the VPC being created |
project_id | The project ID the cluster is in |
region | The region in which the cluster resides |
service_account | The service account to default running nodes as if not overridden in node_pools . |
subnet_names | The names of the subnet being created |
zones | List of zones in which the cluster resides |
To provision this example, run the following from within this directory:
terraform init
to get the pluginsterraform plan
to see the infrastructure planterraform apply
to apply the infrastructure buildterraform destroy
to destroy the built infrastructure