Skip to content

Commit eb7a114

Browse files
committed
Bug Fix to add Ingress for ArgoCD
1 parent c6e7cb3 commit eb7a114

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

terraform/argocd-ingress.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource "kubectl_manifest" "ingress_argocd" {
2+
yaml_body = templatefile("${path.module}/templates/manifests/ingress-argocd.yaml", {
3+
ARGOCD_DOMAIN_NAME = local.argocd_domain_name
4+
}
5+
)
6+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: backstage
5+
namespace: backstage
6+
annotations:
7+
cert-manager.io/cluster-issuer: 'letsencrypt-prod'
8+
spec:
9+
ingressClassName: nginx
10+
tls:
11+
- hosts:
12+
- ${BACKSTAGE_DOMAIN_NAME}
13+
secretName: backstage-prod-tls
14+
rules:
15+
- host: ${BACKSTAGE_DOMAIN_NAME}
16+
http:
17+
paths:
18+
- path: /
19+
pathType: Prefix
20+
backend:
21+
service:
22+
name: backstage
23+
port:
24+
number: 7007

0 commit comments

Comments
 (0)