badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
Ajay Lotan Thakur | 03189d2 | 2022-02-10 14:06:03 -0600 | [diff] [blame] | 4 | # SPDX-License-Identifier: Apache-2.0 |
badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 5 | */}} |
| 6 | |
| 7 | {{- if .Values.config.smf.deploy }} |
| 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: Service |
| 11 | metadata: |
| 12 | name: smf |
| 13 | labels: |
| 14 | {{ tuple "smf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 15 | spec: |
| 16 | type: {{ .Values.config.smf.serviceType }} |
| 17 | selector: |
| 18 | {{ tuple "smf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 19 | ports: |
Ajay Lotan Thakur | 9ad7dfe | 2022-07-25 17:26:03 -0600 | [diff] [blame] | 20 | {{- if eq .Values.config.upfadapter.deploy false }} |
badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 21 | - name: pfcp |
| 22 | port: {{ .Values.config.smf.n4.port }} |
| 23 | protocol: UDP |
| 24 | {{- if eq .Values.config.smf.serviceType "NodePort" }} |
| 25 | {{- if .Values.config.smf.n4.nodePort }} |
| 26 | nodePort: {{ .Values.config.smf.n4.nodePort }} |
| 27 | {{- end }} |
| 28 | {{- end }} |
Ajay Lotan Thakur | 9ad7dfe | 2022-07-25 17:26:03 -0600 | [diff] [blame] | 29 | {{- end }} |
badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 30 | - name: prometheus-exporter |
| 31 | port: {{ .Values.config.smf.prometheus.port }} |
| 32 | protocol: TCP |
| 33 | {{- if eq .Values.config.smf.serviceType "NodePort" }} |
| 34 | {{- if .Values.config.smf.prometheus.nodePort }} |
| 35 | nodePort: {{ .Values.config.smf.prometheus.nodePort }} |
| 36 | {{- end }} |
| 37 | {{- end }} |
| 38 | - name: sbi |
| 39 | port: {{ .Values.config.smf.sbi.port }} |
| 40 | protocol: TCP |
| 41 | {{- if eq .Values.config.smf.serviceType "NodePort" }} |
| 42 | {{- if .Values.config.smf.sbi.nodePort }} |
| 43 | nodePort: {{ .Values.config.smf.sbi.nodePort }} |
| 44 | {{- end }} |
| 45 | {{- end }} |
| 46 | {{- end }} |