Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{/* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | # Copyright 2019-present Open Networking Foundation |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 3 | |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 5 | */}} |
| 6 | |
Hyunsun Moon | 83ff735 | 2020-07-09 11:03:52 -0700 | [diff] [blame] | 7 | {{- if .Values.config.hss.deploy }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 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 |
Hyunsun Moon | 11d24f9 | 2020-08-26 14:55:19 -0700 | [diff] [blame] | 22 | - name: prometheus-exporter |
| 23 | port: {{ .Values.config.hss.prometheus.port }} |
| 24 | protocol: TCP |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 25 | --- |
| 26 | apiVersion: v1 |
| 27 | kind: Service |
| 28 | metadata: |
| 29 | name: hss-headless |
| 30 | labels: |
| 31 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 32 | spec: |
| 33 | selector: |
| 34 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 35 | clusterIP: None |
| 36 | ports: |
| 37 | - name: s6a |
| 38 | port: 3868 |
| 39 | protocol: TCP |
| 40 | {{- if .Values.config.hss.s6a.nodePort.enabled }} |
| 41 | --- |
| 42 | apiVersion: v1 |
| 43 | kind: Service |
| 44 | metadata: |
| 45 | name: hss-external |
| 46 | labels: |
| 47 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 48 | spec: |
| 49 | selector: |
| 50 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 51 | type: NodePort |
| 52 | ports: |
Hyunsun Moon | 11d24f9 | 2020-08-26 14:55:19 -0700 | [diff] [blame] | 53 | {{- if .Values.config.hss.prometheus.nodePort.enabled }} |
| 54 | - name: prometheus-exporter |
| 55 | port: {{ .Values.config.hss.prometheus.port }} |
| 56 | protocol: TCP |
| 57 | nodePort: {{ .Values.config.hss.prometheus.nodePort.port }} |
| 58 | {{- end }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 59 | - name: s6a |
| 60 | port: 3868 |
| 61 | protocol: TCP |
| 62 | nodePort: {{ .Values.config.hss.s6a.nodePort.port }} |
| 63 | {{- end }} |
Hyunsun Moon | 83ff735 | 2020-07-09 11:03:52 -0700 | [diff] [blame] | 64 | {{- end }} |