blob: 6faf652a23d9df2bae683c4e58a192b4dc5b5585 [file] [log] [blame]
Sean Condona49cffd2021-10-01 12:38:45 +01001# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
2#
3# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
5apiVersion: v1
6kind: Service
7metadata:
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 }}
15spec:
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 }}
28apiVersion: v1
29kind: Service
30metadata:
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 }}
38spec:
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 }}