Skip to content

Commit ad7561f

Browse files
author
Valentin Khramtsov
committed
Changes in ingress and output for fargate application
1 parent 727917a commit ad7561f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

terraform/modules/k8s-addons/eks-fargate-app.tf

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ metadata:
9292
namespace: ${local.fargate_app.namespace}
9393
annotations:
9494
kubernetes.io/ingress.class: nginx
95-
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
9695
spec:
9796
rules:
9897
- host: ${local.fargate_app.domain_name}
@@ -105,10 +104,6 @@ spec:
105104
number: 8081
106105
path: /
107106
pathType: Prefix
108-
tls:
109-
- hosts:
110-
- ${local.fargate_app.domain_name}
111-
112107
EOF
113108

114109
depends_on = [
@@ -117,3 +112,8 @@ EOF
117112
helm_release.ingress_nginx
118113
]
119114
}
115+
116+
output "fargate_app_domain_name" {
117+
value = local.fargate_app.enabled ? local.fargate_app.domain_name : null
118+
description = "Fargate app domain name"
119+
}

0 commit comments

Comments
 (0)