blob: 14bfbda93ec5f6ce7d06be1eda2e5678fa6d3d3a [file] [log] [blame]
Hyunsun Mooned24cac2019-08-26 20:52:20 -05001{{/*
2Copyright 2019-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/}}
16
17---
Hyunsun Mooned24cac2019-08-26 20:52:20 -050018apiVersion: v1
19kind: Service
20metadata:
Hyunsun Moon834c28f2019-12-05 18:26:22 -080021 name: hss
Hyunsun Mooned24cac2019-08-26 20:52:20 -050022 labels:
23{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
24spec:
25 selector:
26{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
Hyunsun Mooned24cac2019-08-26 20:52:20 -050027 ports:
28 - name: s6a
29 port: 3868
30 protocol: TCP
Hyunsun Moon834c28f2019-12-05 18:26:22 -080031---
32apiVersion: v1
33kind: Service
34metadata:
35 name: hss-headless
36 labels:
37{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
38spec:
39 selector:
40{{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }}
41 clusterIP: None
42 ports:
43 - name: s6a
44 port: 3868
45 protocol: TCP
46{{- if .Values.config.hss.s6a.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 - name: s6a
60 port: 3868
61 protocol: TCP
Hyunsun Mooned24cac2019-08-26 20:52:20 -050062 nodePort: {{ .Values.config.hss.s6a.nodePort.port }}
Hyunsun Moon834c28f2019-12-05 18:26:22 -080063{{- end }}