blob: 371b363d04bdc87979c7c706b03aa9a343bd9534 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001{{/*
2# Copyright 2019-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
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:
16 selector:
17{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
18 ports:
19 - name: s6a
20 port: 3868
21 protocol: TCP
22 - name: config-port
23 port: {{ .Values.config.hss.configPort.port }}
24 protocol: TCP
25 - name: prometheus-exporter
26 port: {{ .Values.config.hss.prometheus.port }}
27 protocol: TCP
28---
29apiVersion: v1
30kind: Service
31metadata:
32 name: hss-headless
33 labels:
34{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
35spec:
36 selector:
37{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
38 clusterIP: None
39 ports:
40 - name: s6a
41 port: 3868
42 protocol: TCP
43 - name: config-port
44 port: {{ .Values.config.hss.configPort.port }}
45 protocol: TCP
46{{- if or .Values.config.hss.s6a.nodePort.enabled .Values.config.hss.configPort.nodePort.enabled}}
47---
48apiVersion: v1
49kind: Service
50metadata:
51 name: hss-external
52 labels:
53{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
54spec:
55 selector:
56{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
57 type: NodePort
58 ports:
59 {{- if .Values.config.hss.prometheus.nodePort.enabled }}
60 - name: prometheus-exporter
61 port: {{ .Values.config.hss.prometheus.port }}
62 protocol: TCP
63 nodePort: {{ .Values.config.hss.prometheus.nodePort.port }}
64 {{- end }}
65 - name: s6a
66 port: 3868
67 protocol: TCP
68 nodePort: {{ .Values.config.hss.s6a.nodePort.port }}
69 {{- if .Values.config.hss.configPort.nodePort.enabled }}
70 - name: config-port
71 port: {{ .Values.config.hss.configPort.port }}
72 protocol: TCP
73 nodePort: {{ .Values.config.hss.configPort.nodePort.port }}
74 {{- end }}
75{{- end }}
76{{- end }}