With default labels, backend finds pods with app
label which equal to app_name
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]
}
]
}
Name | Version |
---|---|
terraform | >= 0.12.26 |
kubernetes | >= 2.0.0 |
See in example directory & variables.tf
Name | Description |
---|---|
id | Kubernetes resource id |
urls | URLs in ingress |