k8s

hajowieland/k8s/google

Terraform Module HCL GOOGLE

Terraform module for creating a Kubernetes cluster on Google Cloud Platform with latest available version, kubeconfig file creation and addititonal node pool.

Install
module "k8s" {
source = "hajowieland/k8s/google"
version = "1.1.1"
}
plain text: /constructs/tfmod-hajowieland-k8s-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Kubernetes on Google Cloud This repository contains the Terraform module for creating a simple but ready-to-use Kubernetes Cluster on Google Cloud Kubernetes Engine (GKE). It uses the latest available Kubernetes version available in the Google Cloud location and creates a kubeconfig file at completion. - Terraform Kubernetes on Google Cloud - Requirements - Features - Notes - Defaults - Runtime - Terraform Inputs - Outputs Requirements You need a Google Cloud account with billing enabled (if you already exceeded the Trial). Features Always uses latest Kubernetes version available at Google Cloud location kubeconfig file generation Master nodes are available from workstation IP address only _(master_authorized_networks_config)_ Create zonal (default) or regional GKE cluster (enabl

Inputs (12)
NameTypeDescriptionDefault
gcp_projectstringGCP Project ID required
gke_namestringGKE cluster name (e.g. `k8s`)"k8s"
gke_pool_namestringGKE node pool name (e.g. `k8snodepool`)"k8snodepool"
gke_nodesnumberGKE Kubernetes worker nodes (e.g. `2`)2
gke_node_typestringGKE node instance type (e.g. `n1-standard-2` => 1vCPU, 7.5 GB RAM)"n1-standard-2"
enable_regional_clusterboolCreate regional GKE cluster instead of zonalfalse
gcp_regionstringGCP region (e.g. `europe-west3-c` => Frankfurt)"europe-west3"
gke_preemptibleboolUse GKE preemptible nodes (e.g. `false`)false
gke_serviceaccountstringGCP service account for GKE (e.g. `default`)"default"
gke_oauth_scopeslist(string)GCP OAuth scopes for GKE (https://www.terraform.io/docs/providers/google/r/conta[ "https://www.googleapis.com/auth/com
enable_googleboolEnable / Disable Google Cloud k8s (e.g. `true`)true
random_cluster_suffixstringRandom 6 byte hex suffix for cluster name""
Outputs (2)
kubeconfig_path_gke
latest_k8s_master_version
Resources (4)
google_container_clustergoogle_container_node_poollocal_filerandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version1.1.1
Cloud GOOGLE
★ Stars1
Forks8
Total downloads6.4k
Inputs12
Outputs2
Resources4
LicenseGPL-3.0
Namespacehajowieland
Updated