Skip to content

terraform-iaac/terraform-kubernetes-ingress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform module for Kubernetes Ingress

Usage (more in example direcotry)

With default labels, backend finds pods with app label which equal to app_name

Example with ClusterIP

module "ingress" {
  source = "../"
  
  app_name      = module.service.name
  app_namespace = var.namespace
  annotations   = {
    "app" = "test"
  }

  rule = [
    {
      domain        = local.url
      external_port = var.ports_mapping.0.external_port // Service port
    }
  ]
  tls_hosts = [
    {
      secret_name = "cert-manager-ingress"
      hosts       = [example.com]
    }
  ]
}

Terraform Requirements

Name Version
terraform >= 0.12.26
kubernetes >= 2.0.0

Inputs

See in example directory & variables.tf

Outputs

Name Description
id Kubernetes resource id
urls URLs in ingress

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages