blob: fad2a2785a788de530129616c5703ee6261a4a03 [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
22---
23apiVersion: v1
24kind: Service
25metadata:
26 name: hss-headless
27 labels:
28{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
29spec:
30 selector:
31{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
32 clusterIP: None
33 ports:
34 - name: s6a
35 port: 3868
36 protocol: TCP
37{{- if .Values.config.hss.s6a.nodePort.enabled }}
38---
39apiVersion: v1
40kind: Service
41metadata:
42 name: hss-external
43 labels:
44{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
45spec:
46 selector:
47{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
48 type: NodePort
49 ports:
50 - name: s6a
51 port: 3868
52 protocol: TCP
53 nodePort: {{ .Values.config.hss.s6a.nodePort.port }}
54{{- end }}
Hyunsun Moon83ff7352020-07-09 11:03:52 -070055{{- end }}