Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Bug Fix to add Ingress for ArgoCD
Signed-off-by: Elamaran Shanmugam <[email protected]>
  • Loading branch information
elamaran11 committed Aug 29, 2024
commit 6349f130071ff59b2ceb1a9931d1a0c3a03a2cbe
6 changes: 6 additions & 0 deletions terraform/argocd-ingress.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "kubectl_manifest" "ingress_argocd" {
yaml_body = templatefile("${path.module}/templates/manifests/ingress-argocd.yaml", {
ARGOCD_DOMAIN_NAME = local.argocd_domain_name
}
)
}
24 changes: 24 additions & 0 deletions terraform/templates/manifests/ingress-argocd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: backstage
namespace: backstage
annotations:
cert-manager.io/cluster-issuer: 'letsencrypt-prod'
spec:
ingressClassName: nginx
tls:
- hosts:
- ${BACKSTAGE_DOMAIN_NAME}
secretName: backstage-prod-tls
rules:
- host: ${BACKSTAGE_DOMAIN_NAME}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: backstage
port:
number: 7007