Sean Condon | a49cffd | 2021-10-01 12:38:45 +0100 | [diff] [blame^] | 1 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | {{- if .Values.ingress.enabled }} |
| 6 | apiVersion: networking.k8s.io/v1 |
| 7 | kind: Ingress |
| 8 | metadata: |
| 9 | name: {{ template "aether-roc-gui.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" |
| 19 | spec: |
| 20 | tls: |
| 21 | - secretName: {{ template "aether-roc-gui.fullname" . }}-secret |
| 22 | hosts: |
| 23 | - aether-roc-gui.onosproject.org |
| 24 | rules: |
| 25 | - host: aether-roc-gui.onosproject.org |
| 26 | http: |
| 27 | paths: |
| 28 | - pathType: Prefix |
| 29 | path: "/" |
| 30 | backend: |
| 31 | service: |
| 32 | name: {{ template "aether-roc-gui.fullname" . }} |
| 33 | port: |
| 34 | number: {{ .Values.ports.web.containerPort }} |
| 35 | {{- end }} |