You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
786 B
29 lines
786 B
{{- if .Values.ingress.enabled -}}
|
|
{{- $fullName := include "edemocracia.fullname" . -}}
|
|
{{- $hostName := .Values.edemocracia.hostname -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ $fullName }}
|
|
labels:
|
|
{{- include "edemocracia.labels" . | nindent 4 }}
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
{{- with .Values.ingress.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
tls:
|
|
- hosts:
|
|
- "{{ $hostName }}"
|
|
secretName: {{ $hostName | replace "." "-" }}-tls
|
|
rules:
|
|
- host: "{{ $hostName }}"
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: nginx
|
|
servicePort: http
|
|
{{- end }}
|
|
|