Badhrinath Pa | 083686a | 2020-09-29 21:51:42 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: v1 |
| 9 | kind: Service |
| 10 | metadata: |
Badhrinath Pa | 083686a | 2020-09-29 21:51:42 -0700 | [diff] [blame] | 11 | name: pfcp-agent |
| 12 | labels: |
| 13 | {{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }} |
| 14 | spec: |
| 15 | type: ClusterIP |
| 16 | selector: |
| 17 | {{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }} |
| 18 | ports: |
| 19 | - name: pfcp |
| 20 | port: 8805 |
| 21 | protocol: UDP |
Hyunsun Moon | 295d98d | 2021-03-17 11:04:34 -0700 | [diff] [blame] | 22 | {{- if .Values.config.nodePort.enabled }} |
| 23 | --- |
| 24 | apiVersion: v1 |
| 25 | kind: Service |
| 26 | metadata: |
| 27 | name: pfcp-agent-external |
| 28 | labels: |
| 29 | {{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }} |
| 30 | spec: |
| 31 | type: NodePort |
| 32 | selector: |
| 33 | {{ tuple "pfcp" . | include "omec-upf-pfcp-agent.metadata_labels" | indent 4 }} |
| 34 | ports: |
| 35 | - name: pfcp |
| 36 | port: 8805 |
| 37 | protocol: UDP |
| 38 | nodePort: {{ .Values.config.nodePort.port }} |
| 39 | {{- end }} |