Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | {{- if .Values.config.nrf.deploy }} |
| 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: Service |
| 11 | metadata: |
| 12 | name: nrf |
| 13 | labels: |
| 14 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 15 | spec: |
| 16 | type: ClusterIP |
| 17 | selector: |
| 18 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 19 | ports: |
| 20 | - name: sbi |
| 21 | port: {{ .Values.config.nrf.sbi.port }} |
| 22 | protocol: TCP |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 23 | {{- if or .Values.config.nrf.sbi.nodePort.enabled }} |
| 24 | --- |
| 25 | apiVersion: v1 |
| 26 | kind: Service |
| 27 | metadata: |
| 28 | name: nrf-external |
| 29 | labels: |
| 30 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 31 | spec: |
| 32 | type: NodePort |
| 33 | selector: |
| 34 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 35 | ports: |
| 36 | {{- if .Values.config.nrf.sbi.nodePort.enabled }} |
| 37 | - name: sbi |
| 38 | port: {{ .Values.config.nrf.sbi.port }} |
| 39 | protocol: TCP |
| 40 | nodePort: {{ .Values.config.nrf.sbi.nodePort.port }} |
| 41 | {{- end }} |
| 42 | {{- end }} |
| 43 | {{- end }} |