Terraform module which creates Kubernetes Cluster resources on KIND (Kubernetes in Docker).
Basic Cluster Configuration
module "kind_cluster" {
source = " PePoDev/cluster/kind"
version = " ~> 0.1"
cluster_name = " kubernetes-problems"
enable_metrics_server = true
enable_loadbalancer = true
}
No modules.
Name
Description
Type
Default
Required
cluster_name
Cluster name to create k8s cluster in Docker and set kubeconfig, You can use this cluster name select context with kubectl.
string
n/a
yes
containerd_config_patches
Path config to existing default for containerd.
list(string)
[]
no
enable_loadbalancer
Set to true to enable loadbalance for kind cluster.
bool
false
no
enable_metrics_server
Set to true to install metrics server into cluster.
bool
false
no
kubernetes_version
Specific kubernetes version to create cluster, Must specific in SemVer version. (Check all supported version -> https://hub.docker.com/r/kindest/node/tags )
string
"1.21.1"
no
node_image
Change base image for kubernetes cluster, This parameter allow you to use local build image.
string
"kindest/node"
no
nodes
Nodes information to create cluster with control plan and worker. Default is AIO node.
list(object({ role = string kubeadm_config_patches = list(string) extra_port_mappings = object({ listen_address = string container_port = string host_port = string protocol = string }) }))
[]
no