blob: 371b363d04bdc87979c7c706b03aa9a343bd9534 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07005*/}}
6
Hyunsun Moon83ff7352020-07-09 11:03:52 -07007{{- if .Values.config.hss.deploy }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -07008---
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
Ajay Lotan Thakurcd372a22020-12-11 14:36:26 -070022 - name: config-port
23 port: {{ .Values.config.hss.configPort.port }}
24 protocol: TCP
Hyunsun Moon11d24f92020-08-26 14:55:19 -070025 - name: prometheus-exporter
26 port: {{ .Values.config.hss.prometheus.port }}
27 protocol: TCP
Jeremy Ronquillo223db002020-06-05 10:28:22 -070028---
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
Ajay Lotan Thakurcd372a22020-12-11 14:36:26 -070043 - 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}}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070047---
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:
Hyunsun Moon11d24f92020-08-26 14:55:19 -070059 {{- 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 }}
Ajay Lotan Thakurcd372a22020-12-11 14:36:26 -070065 - 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 }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070075{{- end }}
Hyunsun Moon83ff7352020-07-09 11:03:52 -070076{{- end }}