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 |
| 23 | --- |
| 24 | apiVersion: v1 |
| 25 | kind: Service |
| 26 | metadata: |
| 27 | name: nrf-headless |
| 28 | labels: |
| 29 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 30 | spec: |
| 31 | clusterIP: None |
| 32 | selector: |
| 33 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 34 | {{- if or .Values.config.nrf.sbi.nodePort.enabled }} |
| 35 | --- |
| 36 | apiVersion: v1 |
| 37 | kind: Service |
| 38 | metadata: |
| 39 | name: nrf-external |
| 40 | labels: |
| 41 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 42 | spec: |
| 43 | type: NodePort |
| 44 | selector: |
| 45 | {{ tuple "nrf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 46 | ports: |
| 47 | {{- if .Values.config.nrf.sbi.nodePort.enabled }} |
| 48 | - name: sbi |
| 49 | port: {{ .Values.config.nrf.sbi.port }} |
| 50 | protocol: TCP |
| 51 | nodePort: {{ .Values.config.nrf.sbi.nodePort.port }} |
| 52 | {{- end }} |
| 53 | {{- end }} |
| 54 | {{- end }} |