Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 14, 2022
1 parent aebe90b commit 3af4a2c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions examples/efk/expose-kibana.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ resource "kubernetes_manifest" "vs_certificate" {
}
spec = {
secretName = "kibana-cert"
commonName = format("%v.%v", "kibana", var.domain)
dnsNames = [format("%v.%v", "kibana", var.domain)]
commonName = format("%v.%v.%v", "kibana", var.cluster_name, var.vpc_domain_name)
dnsNames = [
format("%v.%v.%v", "kibana", var.cluster_name, var.vpc_domain_name),
format("%v.%v", "kibana", var.vpc_domain_name),
]
subject = {
countries = ["US"]
organizations = ["U.S. Census Bureau"]
Expand Down Expand Up @@ -52,7 +55,7 @@ resource "kubernetes_manifest" "vs_gateway" {
tls = {
httpsRedirect = true
}
hosts = [format("%v.%v", "kibana", var.domain)]
hosts = [format("%v.%v.%v", "kibana", var.cluster_name, var.vpc_domain_name)]
},
{ port = {
number = 443
Expand All @@ -63,7 +66,7 @@ resource "kubernetes_manifest" "vs_gateway" {
mode = "SIMPLE"
credentialName = "kibana-cert"
}
hosts = [format("%v.%v", "kibana", var.domain)]
hosts = [format("%v.%v.%v", "kibana", var.cluster_name, var.vpc_domain_name)]
}
]
}
Expand Down

0 comments on commit 3af4a2c

Please sign in to comment.