blob: ae7bd31e220af83ecb0c749041c6e086d2cd1687 [file] [log] [blame]
Sean Condon6fc99682022-02-04 10:48:17 +00001# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
Sean Condon6fc99682022-02-04 10:48:17 +00004
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 }}