{{- if and .Values.epinioUI.enabled .Values.epinioUI.ingress.enabled }} --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.tls: "true" name: epinio-ui namespace: {{ .Release.Namespace }} spec: {{- if .Values.epinioUI.ingress.ingressClassName }} ingressClassName: "{{ .Values.ingress.ingressClassName }}" {{- end }} rules: - host: {{ .Values.global.domain }} http: paths: - backend: service: name: epinio-ui port: number: 80 path: / pathType: ImplementationSpecific tls: - hosts: - {{ .Values.global.domain }} secretName: epinio-ui-tls {{- end }}