Aller au contenu

GKE

Requirements

Name Version
terraform >= 1.3.5, < 2
google >= 6.0, < 7

Providers

Name Version
google >= 6.0, < 7

Modules

No modules.

Resources

Name Type
google_compute_address.nat resource
google_compute_firewall.allow_iap_ssh resource
google_compute_network.vpc resource
google_compute_route.default_route resource
google_compute_router.router resource
google_compute_router_nat.nat resource
google_compute_subnetwork.private resource
google_compute_subnetwork.public resource
google_container_cluster.gke resource
google_container_node_pool.general resource
google_project_iam_member.gke_logging resource
google_project_iam_member.gke_metrics resource
google_project_service.api resource
google_service_account.gke resource

Inputs

Name Description Type Default Required
cluster_name Name of the GKE cluster string "" no
default_route_dest_range Destination IP range for the default route string "" no
default_route_name Name of the default route string "" no
default_route_next_hop Next hop gateway for the default route string "" no
deletion_protection Enable deletion protection on the cluster bool n/a yes
disable_hpa n/a bool n/a yes
disable_http_load_balancing n/a bool n/a yes
enable_private_endpoint n/a bool n/a yes
enable_private_google_access Allow access to Google APIs via internal IPs bool n/a yes
env Environment. One of dev, stg, prd string "" no
firewall_rule_name Name of the firewall rule allowing IAP SSH access string "" no
firewall_ssh_ports List of TCP ports to allow for SSH list(string)
[
""
]
no
gke_service_account_id The ID for the GKE service account. string "" no
iap_source_ranges Google IAP IP range for SSH tunneling list(string)
[
""
]
no
k8s_pods_cidr CIDR range for Kubernetes Pods string "" no
k8s_pods_range_name Name of the secondary IP range for Kubernetes Pods string "" no
k8s_services_cidr CIDR range for Kubernetes Services string "" no
k8s_services_range_name Name of the secondary IP range for Kubernetes Services string "" no
master_ipv4_cidr_block n/a string "" no
nat_ip_name Name of the reserved static external IP for NAT string "" no
nat_name Name of the NAT gateway string "" no
nat_network_tier Network tier for NAT IP (e.g. PREMIUM) string "" no
node_machine_type The machine type for the GKE nodes. string "" no
node_pool_max_size Maximum number of nodes in the node pool. number n/a yes
node_pool_min_size Minimum number of nodes in the node pool. number n/a yes
node_pool_name The name of the GKE node pool. string "" no
private_subnet_cidr CIDR range for the private subnetwork string "" no
private_subnet_name Name of the private subnetwork string "" no
project_id n/a string "" no
public_subnet_cidr CIDR range for the public subnetwork string "" no
public_subnet_name Name of the public subnetwork string "" no
region n/a string "" no
release_channel n/a string "" no
router_name Name of the Cloud Router string "" no
stack_type The stack type for the subnet (IPV4_ONLY or IPV4_IPV6) string "" no
vpc_auto_create_subnetworks Whether to automatically create subnetworks bool n/a yes
vpc_delete_default_routes Whether to delete default routes upon VPC creation bool n/a yes
vpc_name Name of the VPC network string "" no
vpc_routing_mode Routing mode for the VPC string "" no
zone n/a string "" no

Outputs

Name Description
ca_certificate Certificat CA du cluster
endpoint Adresse API du cluster
location Région ou zone du cluster GKE
name Nom du cluster GKE