Overview of the Terraform Google Kubernetes Engine Module
mainThis module provides an opinionated way to create and configure Google Cloud Platform (GCP) Kubernetes Engine (GKE) clusters. It automates the creation of clusters, node pools, and several key configurations including:
- GKE Cluster Creation: Provisioning the cluster with specified addons.
- Node Pool Management: Creating and attaching one or more node pools with custom configurations.
- DNS Configuration: Replacing the default
kube-dnsconfigmap ifstub_domainsare provided. - Network Policy: Activating network policy when
network_policyis set totrue. - IP Masquerade: Adding the
ip-masq-agentconfigmap withnon_masquerade_cidrsifconfigure_ip_masqis set totrue.
Sub-modules are available for specialized use cases, such as private clusters, beta private clusters, and beta public clusters, allowing access to GKE beta features.