Files
cloud-configuration/helm/argocd/templates/argocd-ingress.yaml
T

30 lines
1006 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd-server-ingress
namespace: {{ .Release.Namespace }}
annotations:
cert-manager.io/cluster-issuer: {{ .Values.ingress.certIssuer }}
ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
# If you encounter a redirect loop or are getting a 307 response code
# then you need to force the nginx ingress to connect to the backend using HTTPS.
#
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
ingressClassName: {{ .Values.ingress.className }}
rules:
- host: {{ tpl (quote .Values.ingress.host) . }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: argo-cd-argocd-server
port:
name: https
tls:
- hosts:
- {{ tpl (quote .Values.ingress.host) . }}
secretName: argocd-server-tls # as expected by argocd-server