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