This is a Dynamic module in terraform to create GKE cluster. This module will be called from ../env/dev.tf modules file, by using this reusable module we will be able to create GKE cluster and Cluster Node Pool.
- main.tf : contains all the resources which will be created with
terraform apply
command. - variables.tf : contains all the variables required to create the resources.
- outputs.tf : prints output attributes of the resources.
No requirements.
Name | Version |
---|---|
n/a |
No modules.
Name | Type |
---|---|
google_container_cluster.container_cluster | resource |
google_container_node_pool.container_node_pool | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
enable_private_endpoint | (Beta) Whether the master's internal IP address is used as the cluster endpoint | bool |
false |
no |
enable_private_nodes | (Beta) Whether nodes have internal IP addresses only | bool |
false |
no |
environment | Name of the environment where infrastructure being built. | string |
n/a | yes |
initial_node_count | n/a | number |
n/a | yes |
machine_type | Type of machines which are used by cluster node pool | string |
"e2-highmem-8" |
no |
master_ipv4_cidr_block | The IP range in CIDR notation (size must be /28) to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network. | string |
"10.0.0.0/28" |
no |
name | Name is the prefix to use for resources that needs to be created. | string |
n/a | yes |
network_link | network link variable from vpc module outputs | string |
"" |
no |
project_id | The project ID where all resources will be launched. | string |
n/a | yes |
region | The location of the GKE cluster. | string |
n/a | yes |
service_account | The name of the custom service account used for the GKE cluster. This parameter is limited to a maximum of 28 characters | string |
"" |
no |
subnetwork_link | subnetwork link variable from vpc module outputs | string |
"" |
no |
Name | Description |
---|---|
cluster_name | GKE cluster name |
endpoint | End point of the google container cluster |
master_version | Master version of Kubernetes cluster |