gke-ecommerce

Devgurusio/gke-ecommerce/gcp

Terraform Module HCL GCP

Google Kubernetes Engine starter kit to bootstrap an e-commerce site based on microservices

Install
module "gke-ecommerce" {
source = "Devgurusio/gke-ecommerce/gcp"
version = "2.0.0"
}
plain text: /constructs/tfmod-devgurusio-gke-ecommerce-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

![GitHub Super-Linter](https://github.com/marketplace/actions/super-linter) Google Kubernetes Engine (GKE) This is an opinionated terraform module to bootstrap a GKE Cluster using Terraform. Based on our needs and following GKE security best practices, we've enabled/disabled some features by default. Features enabled: Default node pool removed Logging and Monitoring using Cloud Operations for GKE GKE Shielded nodes (with secure boot enabled) Workload identity VPC Native cluster Storage classes using CSI driver Prevent cluster destroy Updatable nodes (new node pool created before destroying the old one) non-default SA for nodes Usage of containerd as runtime Cluster autoscaler vertical pod autoscaler Features disabled: Basic auth for API server Client certificate issuing for API server Usag

Inputs (49)
NameTypeDescriptionDefault
project_idstringThe project ID to host the cluster in (required) required
subnet_ip_cidr_rangestringIPv4 CIDR Block for Subnetwork"10.0.0.0/17"
deletion_protectionboolWhether to enable deletion protection on the clustertrue
autoscaling_profilestringThe autoscaling profile to use. Valid values are: balanced, cost, performance. D"BALANCED"
release_channelstringThe release channel of this cluster. Accepted values are `UNSPECIFIED`, `RAPID`,"UNSPECIFIED"
cluster_name_suffixstringA suffix to append to the default cluster name""
zoneslist(string)The zone to host the cluster in (required if is a zonal cluster)[]
master_ipv4_cidr_blockstringIPv4 CIDR Block for Master Nodes"172.16.0.0/28"
cluster_autoscaler_cpu_minnumberMinimum number of CPUs in the cluster autoscaler1
gke_instance_typestringThe worker instance type"n1-standard-2"
node_pool_disk_typestringDisk type for GKE nodes. Available values: pd-stadard, pd-ssd.Default: pd-standa"pd-ssd"
node_auto_repairboolWhether the nodes will be automatically repairedtrue
monitoring_servicestringThe monitoring service that the cluster should write metrics to. Automatically s"monitoring.googleapis.com/kubernetes"
enable_cluster_autoscalerboolWhether to enable cluster autoscalerfalse
services_ipv4_cidr_blockstringIPv4 CIDR Block for Kubernetes services"192.168.64.0/18"
enable_netpolboolToggles network policies enforcement feature. Default: falsefalse
netpol_providerstringSets the network policy provider. Default: CALICO"CALICO"
nat_ip_countnumberThe number of NAT IPs1
min_ports_per_vmstringMax number of concurrent outgoing request to IP:PORT_PROTOCOL per VM"8192"
udp_idle_timeout_secstringTimeout (in seconds) for UDP connections. Defaults to 30s if not set."30"
google_compute_firewall_namestringThe name of the firewall rule to be created"istio-discovery-allow-firewall"
… and 9 more inputs
Outputs (6)
network_name — Network name
network_self_link — Network selflink
subnetwork_name — Subnetwork name
google_container_cluster — GKE cluster name
k8s_ingress_ip — API server public IP address
nat_address — List of NAT addresses
Resources (12)
google_compute_addressgoogle_compute_firewallgoogle_compute_networkgoogle_compute_routergoogle_compute_router_natgoogle_compute_subnetworkgoogle_container_clustergoogle_container_node_poolgoogle_project_iam_membergoogle_service_accountrandom_idrandom_shuffle
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud GCP
★ Stars4
Forks3
Total downloads5.9k
Inputs49
Outputs6
Resources12
Examples7
LicenseApache-2.0
NamespaceDevgurusio
Updated