blob: 22c212bf2feba5850b10bf9366a6dcfa75f4f98c [file] [log] [blame]
Hyunsun Moon06f98552019-08-15 13:44:47 -06001{{/*
2Copyright 2019-present Open Networking Foundation
3Copyright 2019 Intel Corporation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16*/}}
17
Hyunsun Moona24d3f92019-06-19 03:04:58 -050018---
19apiVersion: v1
20kind: Service
21metadata:
Hyunsun Moonc4a7d542019-08-22 18:53:40 -050022 name: spgwu-dp-comm
23 labels:
24{{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }}
Hyunsun Moona24d3f92019-06-19 03:04:58 -050025spec:
26 selector:
Hyunsun Moon7a007bb2019-08-19 16:41:36 -060027{{ tuple "spgwu" . | include "omec-data-plane.metadata_labels" | indent 4 }}
Hyunsun Moonc4a7d542019-08-22 18:53:40 -050028{{- if .Values.config.spgwu.dpComm.nodePort.enabled }}
29 type: NodePort
30{{- end }}
Hyunsun Moona24d3f92019-06-19 03:04:58 -050031 ports:
Hyunsun Moonc4a7d542019-08-22 18:53:40 -050032 - name: dp-comm
Hyunsun Moona24d3f92019-06-19 03:04:58 -050033 port: 20
34 protocol: UDP
Hyunsun Moonc4a7d542019-08-22 18:53:40 -050035 {{- if .Values.config.spgwu.dpComm.nodePort.enabled }}
36 nodePort: {{ .Values.config.spgwu.dpComm.nodePort.port }}
37 {{- end }}