blob: 57e9316031c4b028b3330ab9d4b7e61d1bf98452 [file] [log] [blame]
Sean Condon670605a2021-12-13 12:58:20 +00001# SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
Sean Condon670605a2021-12-13 12:58:20 +00004
5{{- if .Values.ingress.enabled }}
6apiVersion: networking.k8s.io/v1
7kind: Ingress
8metadata:
9 name: {{ template "aether-enterprise-portal.fullname" . }}-ingress
10 namespace: {{ .Release.Namespace }}
11 labels:
12 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
13 release: "{{ .Release.Name }}"
14 heritage: "{{ .Release.Service }}"
15 annotations:
16 kubernetes.io/ingress.class: "nginx"
17 nginx.ingress.kubernetes.io/ssl-redirect: "false"
18 nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
19spec:
20 tls:
21 - secretName: {{ template "aether-enterprise-portal.fullname" . }}-secret
22 hosts:
23 - aether-enterprise-portal.onosproject.org
24 rules:
25 - host: aether-enterprise-portal.onosproject.org
26 http:
27 paths:
28 - pathType: Prefix
29 path: "/"
30 backend:
31 service:
32 name: {{ template "aether-enterprise-portal.fullname" . }}
33 port:
34 number: {{ .Values.ports.web.containerPort }}
35{{- end }}