30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
{{- if .Values.application.ingress.enabled -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
name: {{ .Values.application.ingress.name }}
|
|
namespace: {{ .Values.common.namespace }}
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: {{ .Values.application.ingress.clusterIssuer }}
|
|
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
|
nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
|
|
nginx.ingress.kubernetes.io/x-forwarded-for: "$proxy_add_x_forwarded_for"
|
|
spec:
|
|
ingressClassName: {{ .Values.application.ingress.className }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.application.ingress.host }}
|
|
secretName: {{ .Values.application.ingress.tls.secretName }}
|
|
rules:
|
|
- host: {{ .Values.application.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: {{ .Values.application.ingress.path }}
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: {{ .Values.application.service.name }}
|
|
port:
|
|
number: {{ .Values.application.service.port }}
|
|
{{- end }} |