gke

gruntwork-io/gke/google

Terraform Module HCL GOOGLE

Terraform code and scripts for deploying a Google Kubernetes Engine (GKE) cluster.

Install
module "gke" {
source = "gruntwork-io/gke/google"
version = "0.10.0"
}
⭐ Source on GitHub 📦 Registry page
README

![Maintained by Gruntwork.io](https://gruntwork.io/?ref=repo_google_gke) ![GitHub tag (latest SemVer)](https://github.com/gruntwork-io/terraform-google-gke/releases/latest) !Terraform Version Google Kubernetes Engine (GKE) Module This repo contains a Terraform module for running a Kubernetes cluster on Google Cloud Platform (GCP) using Google Kubernetes Engine (GKE). Quickstart If you want to quickly spin up a GKE Public Cluster, you can run the example that is in the root of this repo. Check out the gke-basic-helm example documentation for instructions. What's in this repo This repo has the following folder structure: - root: The root folder contains an example of how to deploy a GKE Public Cluster with an example chart with Helm. See gke-basic-helm for the documentation. - modules: This

Inputs (16)
NameTypeDescriptionDefault
regionstringThe region for the network. If the cluster is regional, this must be the same re required
locationstringThe location (region or zone) of the GKE cluster. required
projectstringThe project ID where all resources will be launched. required
public_services_secondary_cidr_blockstringThe IP address range of the VPC's public services secondary address range in CID required
private_services_secondary_cidr_blockstringThe IP address range of the VPC's private services secondary address range in CI required
vpc_cidr_blockstringThe IP address range of the VPC in CIDR notation. A prefix of /16 is recommended"10.3.0.0/16"
public_services_secondary_range_namestringThe name associated with the services subnetwork secondary range, used when addi"public-services"
vpc_secondary_cidr_blockstringThe IP address range of the VPC's secondary address range in CIDR notation. A pr"10.4.0.0/16"
cluster_service_account_descriptionstringA description of the custom service account used for the GKE cluster."Example GKE Cluster Service Account man
public_subnetwork_secondary_range_namestringThe name associated with the pod subnetwork secondary range, used when adding an"public-cluster"
secondary_cidr_subnetwork_width_deltanumberThe difference between your network and subnetwork's secondary range netmask; an4
cluster_namestringThe name of the Kubernetes cluster."example-cluster"
master_ipv4_cidr_blockstringThe IP range in CIDR notation (size must be /28) to use for the hosted master ne"10.5.0.0/28"
secondary_cidr_subnetwork_spacingnumberHow many subnetwork-mask sized spaces to leave between each subnetwork type's se0
cluster_service_account_namestringThe name of the custom service account used for the GKE cluster. This parameter "example-cluster-sa"
kubectl_config_pathstringPath to the kubectl config file. Defaults to $HOME/.kube/config""
Outputs (4)
cluster_endpoint — The IP address of the cluster master.
client_certificate — Public certificate used by clients to authenticate to the cluster endpoint.
client_key — Private key used by clients to authenticate to the cluster endpoint.
cluster_ca_certificate — The public certificate that is the root of trust for the cluster.
Resources (5)
google_container_node_poolhelm_releasekubernetes_cluster_role_bindingnull_resourcerandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version0.10.0
Cloud GOOGLE
★ Stars358
Forks280
Total downloads57.7k
Inputs16
Outputs4
Resources5
Examples2
Submodules2
LicenseApache-2.0
Namespacegruntwork-io
Updated