badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2019-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | {{- if .Values.config.hss.deploy }} |
| 8 | --- |
| 9 | apiVersion: v1 |
| 10 | kind: Service |
| 11 | metadata: |
| 12 | name: hss |
| 13 | labels: |
| 14 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 15 | spec: |
| 16 | selector: |
| 17 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 18 | ports: |
| 19 | - name: s6a |
| 20 | port: 3868 |
| 21 | protocol: TCP |
| 22 | - name: config-port |
| 23 | port: {{ .Values.config.hss.configPort.port }} |
| 24 | protocol: TCP |
| 25 | - name: prometheus-exporter |
| 26 | port: {{ .Values.config.hss.prometheus.port }} |
| 27 | protocol: TCP |
| 28 | --- |
| 29 | apiVersion: v1 |
| 30 | kind: Service |
| 31 | metadata: |
| 32 | name: hss-headless |
| 33 | labels: |
| 34 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 35 | spec: |
| 36 | selector: |
| 37 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 38 | clusterIP: None |
| 39 | ports: |
| 40 | - name: s6a |
| 41 | port: 3868 |
| 42 | protocol: TCP |
| 43 | - name: config-port |
| 44 | port: {{ .Values.config.hss.configPort.port }} |
| 45 | protocol: TCP |
| 46 | {{- if or .Values.config.hss.s6a.nodePort.enabled .Values.config.hss.configPort.nodePort.enabled}} |
| 47 | --- |
| 48 | apiVersion: v1 |
| 49 | kind: Service |
| 50 | metadata: |
| 51 | name: hss-external |
| 52 | labels: |
| 53 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 54 | spec: |
| 55 | selector: |
| 56 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 57 | type: NodePort |
| 58 | ports: |
| 59 | {{- if .Values.config.hss.prometheus.nodePort.enabled }} |
| 60 | - name: prometheus-exporter |
| 61 | port: {{ .Values.config.hss.prometheus.port }} |
| 62 | protocol: TCP |
| 63 | nodePort: {{ .Values.config.hss.prometheus.nodePort.port }} |
| 64 | {{- end }} |
| 65 | - name: s6a |
| 66 | port: 3868 |
| 67 | protocol: TCP |
| 68 | nodePort: {{ .Values.config.hss.s6a.nodePort.port }} |
| 69 | {{- if .Values.config.hss.configPort.nodePort.enabled }} |
| 70 | - name: config-port |
| 71 | port: {{ .Values.config.hss.configPort.port }} |
| 72 | protocol: TCP |
| 73 | nodePort: {{ .Values.config.hss.configPort.nodePort.port }} |
| 74 | {{- end }} |
| 75 | {{- end }} |
| 76 | {{- end }} |