Ajay Lotan Thakur | 9ad7dfe | 2022-07-25 17:26:03 -0600 | [diff] [blame] | 1 | {{/* |
| 2 | # SPDX-FileCopyrightText: 2022-present Intel Corporation |
| 3 | |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | */}} |
| 6 | |
| 7 | {{- if .Values.config.upfadapter.deploy }} |
| 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: Service |
| 11 | metadata: |
| 12 | name: upf-adapter |
| 13 | labels: |
| 14 | {{ tuple "upfadapter" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 15 | spec: |
| 16 | type: {{ .Values.config.upfadapter.serviceType }} |
| 17 | selector: |
| 18 | {{ tuple "upfadapter" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 19 | ports: |
| 20 | - name: pfcp |
| 21 | port: {{ .Values.config.upfadapter.n4.port }} |
| 22 | protocol: UDP |
| 23 | {{- if eq .Values.config.upfadapter.serviceType "NodePort" }} |
| 24 | {{- if .Values.config.upfadapter.n4.nodePort }} |
| 25 | nodePort: {{ .Values.config.upfadapter.n4.nodePort }} |
| 26 | {{- end }} |
| 27 | {{- end }} |
| 28 | - name: upfadapter-rest |
| 29 | port: {{ .Values.config.upfadapter.rest.port }} |
| 30 | protocol: TCP |
| 31 | {{- end }} |