k3s

camptocamp/k3s/docker

Terraform Module HCL DOCKER
Install
module "k3s" {
source = "camptocamp/k3s/docker"
version = "1.0.1"
}
plain text: /constructs/tfmod-camptocamp-k3s-docker/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-docker-k3s A terraform module to create a K3s cluster on Docker. Available through the Terraform registry. Inspired by and adapted from this docker composition.

Inputs (12)
NameTypeDescriptionDefault
cluster_endpointstringThe api endpoint, when empty it's the container's IP. required
network_namestringDocker network to use. Creates a new one if null. required
cluster_namestringThe name of the Kubernetes cluster to create. required
registry_mirrorsmap{ "docker.io": [ "REGISTRY_PROXY_R
restartstringRestart policy for the cluster."unless-stopped"
server_portsset(object({ internal = nuPort mappings of the server container.[]
wait_for_cluster_cmdstringCustom local-exec command to execute for determining if the eks cluster is healt"for i in `seq 1 60`; do if `command -v
wait_for_cluster_interpreterlist(string)Custom local-exec command line interpreter for the command to determining if the[ "/bin/sh", "-c" ]
server_configlist(string)The command line flags passed to the K3s server[]
worker_groupsmap(object({ node_count =A map defining worker group configurations{ "default": { "node_count": 2,
csi_supportboolContainer Storage Interface requires /var/lib/kubelet to be mounted with rsharedfalse
k3s_versionstringThe K3s version to use"v1.19.2-k3s1"
Outputs (3)
cluster_endpoint
ingress_ip_address
kubeconfig — kubectl config file contents for this K3s cluster.
Resources (7)
docker_containerdocker_imagedocker_networkdocker_volumelocal_filenull_resourcerandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud DOCKER
★ Stars6
Forks7
Total downloads32.1k
Inputs12
Outputs3
Resources7
Submodules1
Namespacecamptocamp
Updated