blob: 606a7e297aa20a888a46038fbb67e290d9f46029 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001{{/*
2# Copyright 2019-present Open Networking Foundation
3
Ajay Lotan Thakur03189d22022-02-10 14:06:03 -06004# SPDX-License-Identifier: Apache-2.0
badhri854c028b32021-11-03 18:24:05 -05005*/}}
6
7{{- if .Values.config.hss.deploy }}
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: hss
13 labels:
14{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
15spec:
Hyunsun Moon07a193c2022-03-25 16:21:04 -060016 type: {{ .Values.config.hss.serviceType }}
17{{- if .Values.config.hss.externalIP }}
18 externalIPs:
19 - {{ .Values.config.hss.externalIP }}
20{{- end }}
21{{- if eq .Values.config.hss.serviceType "LoadBalancer" }}
22{{- if .Values.config.hss.loadBalancerIP }}
23 loadBalancerIP: {{ .Values.config.hss.loadBalancerIP }}
24{{- end }}
25{{- end }}
badhri854c028b32021-11-03 18:24:05 -050026 selector:
27{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
28 ports:
29 - name: s6a
30 port: 3868
31 protocol: TCP
Hyunsun Moon07a193c2022-03-25 16:21:04 -060032{{- if eq .Values.config.hss.serviceType "NodePort" }}
33{{- if .Values.config.hss.s6a.nodePort }}
34 nodePort: {{ .Values.config.hss.s6a.nodePort }}
35{{- end }}
36{{- end }}
badhri854c028b32021-11-03 18:24:05 -050037 - name: config-port
38 port: {{ .Values.config.hss.configPort.port }}
39 protocol: TCP
Hyunsun Moon07a193c2022-03-25 16:21:04 -060040{{- if eq .Values.config.hss.serviceType "NodePort" }}
41{{- if .Values.config.hss.configPort.nodePort }}
42 nodePort: {{ .Values.config.hss.configPort.nodePort }}
43{{- end }}
44{{- end }}
badhri854c028b32021-11-03 18:24:05 -050045 - name: prometheus-exporter
46 port: {{ .Values.config.hss.prometheus.port }}
47 protocol: TCP
Hyunsun Moon07a193c2022-03-25 16:21:04 -060048{{- if eq .Values.config.hss.serviceType "NodePort" }}
49{{- if .Values.config.hss.prometheus.nodePort }}
50 nodePort: {{ .Values.config.hss.prometheus.nodePort }}
51{{- end }}
badhri854c028b32021-11-03 18:24:05 -050052{{- end }}
53{{- end }}