Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
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: argocd-server-ingress
namespace: argocd
annotations:
cert-manager.io/cluster-issuer: 'letsencrypt-prod'
spec:
ingressClassName: nginx
tls:
- hosts:
- ${ARGOCD_DOMAIN_NAME}
secretName: argocd-prod-tls
rules:
- host: ${ARGOCD_DOMAIN_NAME}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: argocd-server
port:
name: https