blob: b4063508f15939958766ef8a63cd8221a9467e56 [file] [log] [blame]
Hyunsun Moon16d70922019-08-25 04:57:25 -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---
18apiVersion: v1
19kind: Service
20metadata:
21 name: spgwc-cp-comm
22 labels:
23{{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }}
24spec:
25 selector:
26{{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }}
27{{- if .Values.config.spgwc.cpComm.nodePort.enabled }}
28 type: NodePort
29{{- end }}
30 ports:
31 - name: cp-comm
32 port: 21
33 protocol: UDP
34 {{- if .Values.config.spgwc.cpComm.nodePort.enabled }}
35 nodePort: {{ .Values.config.spgwc.cpComm.nodePort.port }}
36 {{- end }}
37---
38apiVersion: v1
39kind: Service
40metadata:
41 name: spgwc-s11
42 labels:
43{{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }}
44spec:
45 selector:
46{{ tuple "spgwc" . | include "omec-control-plane.metadata_labels" | indent 4 }}
47{{- if .Values.config.spgwc.s11.nodePort.enabled }}
48 type: NodePort
49{{- end }}
50 ports:
51 - name: s11
52 port: 2123
53 protocol: UDP
54 {{- if .Values.config.spgwc.s11.nodePort.enabled }}
55 nodePort: {{ .Values.config.spgwc.s11.nodePort.port }}
56 {{- end }}