| {{/* |
| # Copyright 2020-present Open Networking Foundation |
| |
| # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| */}} |
| |
| {{- if .Values.config.nssf.deploy }} |
| --- |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: nssf |
| labels: |
| {{ tuple "nssf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| spec: |
| type: ClusterIP |
| selector: |
| {{ tuple "nssf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| ports: |
| - name: prometheus-exporter |
| port: {{ .Values.config.nssf.prometheus.port }} |
| protocol: TCP |
| - name: sbi |
| port: {{ .Values.config.nssf.sbi.port }} |
| protocol: TCP |
| {{- if or .Values.config.nssf.prometheus.nodePort.enabled .Values.config.nssf.sbi.nodePort.enabled }} |
| --- |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: nssf-external |
| labels: |
| {{ tuple "nssf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| spec: |
| type: NodePort |
| selector: |
| {{ tuple "nssf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| ports: |
| {{- if .Values.config.nssf.prometheus.nodePort.enabled }} |
| - name: prometheus-exporter |
| port: {{ .Values.config.nssf.prometheus.port }} |
| protocol: TCP |
| nodePort: {{ .Values.config.nssf.prometheus.nodePort.port }} |
| {{- end }} |
| {{- if .Values.config.nssf.sbi.nodePort.enabled }} |
| - name: sbi |
| port: {{ .Values.config.nssf.sbi.port }} |
| protocol: TCP |
| nodePort: {{ .Values.config.nssf.sbi.nodePort.port }} |
| {{- end }} |
| {{- end }} |
| {{- end }} |