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 | apiVersion: v1 |
| 6 | kind: Service |
| 7 | metadata: |
| 8 | name: {{ template "aether-roc-gui.fullname" . }} |
| 9 | labels: |
| 10 | app: {{ template "aether-roc-gui.fullname" . }} |
| 11 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 12 | release: "{{ .Release.Name }}" |
| 13 | heritage: "{{ .Release.Service }}" |
| 14 | {{- include "aether-roc-gui.labels" . | nindent 4 }} |
| 15 | spec: |
| 16 | type: {{ .Values.service.type }} |
| 17 | selector: |
| 18 | name: {{ template "aether-roc-gui.fullname" . }} |
| 19 | app: aether |
| 20 | type: arg |
| 21 | resource: {{ template "aether-roc-gui.fullname" . }} |
| 22 | {{- include "aether-roc-gui.selectorLabels" . | nindent 4 }} |
| 23 | ports: |
| 24 | - name: web |
| 25 | port: 80 |
| 26 | --- |
| 27 | {{- if .Values.service.external.nodePort }} |
| 28 | apiVersion: v1 |
| 29 | kind: Service |
| 30 | metadata: |
| 31 | name: {{ template "aether-roc-gui.fullname" . }}-external |
| 32 | labels: |
| 33 | app: {{ template "aether-roc-gui.fullname" . }} |
| 34 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 35 | release: "{{ .Release.Name }}" |
| 36 | heritage: "{{ .Release.Service }}" |
| 37 | {{- include "aether-roc-gui.labels" . | nindent 4 }} |
| 38 | spec: |
| 39 | type: NodePort |
| 40 | selector: |
| 41 | name: {{ template "aether-roc-gui.fullname" . }} |
| 42 | app: aether |
| 43 | type: arg |
| 44 | resource: {{ template "aether-roc-gui.fullname" . }} |
| 45 | {{- include "aether-roc-gui.selectorLabels" . | nindent 4 }} |
| 46 | ports: |
| 47 | - name: web |
| 48 | port: 80 |
| 49 | nodePort: {{ .Values.service.external.nodePort }} |
| 50 | protocol: TCP |
| 51 | {{- end }} |