blob: dea1e7a5d48087f37eed07d09ca98ecf0c593757 [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
Hyunsun Moon11d24f92020-08-26 14:55:19 -070022 - name: prometheus-exporter
23 port: {{ .Values.config.hss.prometheus.port }}
24 protocol: TCP
Jeremy Ronquillo223db002020-06-05 10:28:22 -070025---
26apiVersion: v1
27kind: Service
28metadata:
29 name: hss-headless
30 labels:
31{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
32spec:
33 selector:
34{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
35 clusterIP: None
36 ports:
37 - name: s6a
38 port: 3868
39 protocol: TCP
40{{- if .Values.config.hss.s6a.nodePort.enabled }}
41---
42apiVersion: v1
43kind: Service
44metadata:
45 name: hss-external
46 labels:
47{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
48spec:
49 selector:
50{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
51 type: NodePort
52 ports:
Hyunsun Moon11d24f92020-08-26 14:55:19 -070053 {{- if .Values.config.hss.prometheus.nodePort.enabled }}
54 - name: prometheus-exporter
55 port: {{ .Values.config.hss.prometheus.port }}
56 protocol: TCP
57 nodePort: {{ .Values.config.hss.prometheus.nodePort.port }}
58 {{- end }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070059 - name: s6a
60 port: 3868
61 protocol: TCP
62 nodePort: {{ .Values.config.hss.s6a.nodePort.port }}
63{{- end }}
Hyunsun Moon83ff7352020-07-09 11:03:52 -070064{{- end }}