Ajay Lotan Thakur | 6de3b78 | 2022-04-14 08:41:12 -0600 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | */}} |
| 6 | |
| 7 | {{- if .Values.config.sctplb.deploy }} |
| 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: Service |
| 11 | metadata: |
| 12 | name: sctplb |
| 13 | labels: |
| 14 | {{ tuple "sctplb" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 15 | spec: |
| 16 | type: {{ .Values.config.sctplb.serviceType }} |
| 17 | {{- if .Values.config.sctplb.ngapp.externalIp }} |
| 18 | externalIPs: |
| 19 | - {{ .Values.config.sctplb.ngapp.externalIp }} |
| 20 | {{- end }} |
| 21 | selector: |
| 22 | {{ tuple "sctplb" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 23 | ports: |
| 24 | - name: ngapp |
| 25 | port: {{ .Values.config.sctplb.ngapp.port }} |
| 26 | protocol: SCTP |
| 27 | {{- if eq .Values.config.sctplb.serviceType "NodePort" }} |
| 28 | {{- if .Values.config.sctplb.ngapp.nodePort }} |
| 29 | nodePort: {{ .Values.config.sctplb.ngapp.nodePort }} |
| 30 | {{- end }} |
| 31 | {{- end }} |
| 32 | {{- end }} |