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.amf.deploy }} |
| 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: Service |
| 11 | metadata: |
| 12 | name: amf |
| 13 | labels: |
| 14 | {{ tuple "amf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 15 | spec: |
Hyunsun Moon | 1735495 | 2021-08-21 17:41:26 -0700 | [diff] [blame] | 16 | type: {{ .Values.config.amf.serviceType }} |
Hyunsun Moon | 841690e | 2021-05-20 19:26:03 -0700 | [diff] [blame] | 17 | {{- if .Values.config.amf.ngapp.externalIp }} |
| 18 | externalIPs: |
| 19 | - {{ .Values.config.amf.ngapp.externalIp }} |
| 20 | {{- end }} |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 21 | selector: |
| 22 | {{ tuple "amf" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 23 | ports: |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 24 | - name: prometheus-exporter |
| 25 | port: {{ .Values.config.amf.prometheus.port }} |
| 26 | protocol: TCP |
Hyunsun Moon | 1735495 | 2021-08-21 17:41:26 -0700 | [diff] [blame] | 27 | {{- if eq .Values.config.amf.serviceType "NodePort" }} |
| 28 | {{- if .Values.config.amf.prometheus.nodePort }} |
| 29 | nodePort: {{ .Values.config.amf.prometheus.nodePort }} |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 30 | {{- end }} |
Hyunsun Moon | 1735495 | 2021-08-21 17:41:26 -0700 | [diff] [blame] | 31 | {{- end }} |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 32 | - name: sbi |
| 33 | port: {{ .Values.config.amf.sbi.port }} |
| 34 | protocol: TCP |
Hyunsun Moon | 1735495 | 2021-08-21 17:41:26 -0700 | [diff] [blame] | 35 | {{- if eq .Values.config.amf.serviceType "NodePort" }} |
| 36 | {{- if .Values.config.amf.sbi.nodePort }} |
| 37 | nodePort: {{ .Values.config.amf.sbi.nodePort }} |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 38 | {{- end }} |
Hyunsun Moon | 1735495 | 2021-08-21 17:41:26 -0700 | [diff] [blame] | 39 | {{- end }} |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 40 | - name: ngapp |
| 41 | port: {{ .Values.config.amf.ngapp.port }} |
| 42 | protocol: SCTP |
Hyunsun Moon | 1735495 | 2021-08-21 17:41:26 -0700 | [diff] [blame] | 43 | {{- if eq .Values.config.amf.serviceType "NodePort" }} |
| 44 | {{- if .Values.config.amf.ngapp.nodePort }} |
| 45 | nodePort: {{ .Values.config.amf.ngapp.nodePort }} |
Badhrinath | 987e1d8 | 2020-11-20 13:23:58 -0600 | [diff] [blame] | 46 | {{- end }} |
| 47 | {{- end }} |
| 48 | {{- end }} |