Skip to content

ixxeL-DevOps/terraform-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-k3d

Terraform configuration

The terraform play follows modules best practices (local module). All variables from provider are not populated, but I tried to add some of them. Modules can be improved over time by our teams.

I recommend using a terraform.tfvars file such as below:

k3d_globals = {
  name  = "windforlife"
}

ports_cfg = [
  {
    host_port      = 8443,
    container_port = 443
  },
  {
    host_port      = 8080,
    container_port = 80
  }
]

helm_globals = {
  name  = "windforlife"
  chart = "helm-chart"
  namespace = "windforlife"
  create_namespace = true
}

This will create a single node k3s cluster able to support workload on it.

Module reference

Use :

module "helm-windforlife" {
  source       = "../..//modules/helm"
  helm_globals = var.helm_globals
  set_value = var.set_value
  depends_on   = [module.k3s-cluster.k3s_id]
}

For module reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published