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 |
Ajay Lotan Thakur | cd372a2 | 2020-12-11 14:36:26 -0700 | [diff] [blame] | 22 | - name: config-port |
| 23 | port: {{ .Values.config.hss.configPort.port }} |
| 24 | protocol: TCP |
Hyunsun Moon | 11d24f9 | 2020-08-26 14:55:19 -0700 | [diff] [blame] | 25 | - name: prometheus-exporter |
| 26 | port: {{ .Values.config.hss.prometheus.port }} |
| 27 | protocol: TCP |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 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 |
Ajay Lotan Thakur | cd372a2 | 2020-12-11 14:36:26 -0700 | [diff] [blame] | 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}} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 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: |
Hyunsun Moon | 11d24f9 | 2020-08-26 14:55:19 -0700 | [diff] [blame] | 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 }} |
Ajay Lotan Thakur | cd372a2 | 2020-12-11 14:36:26 -0700 | [diff] [blame] | 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 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 76 | {{- end }} |
Hyunsun Moon | 83ff735 | 2020-07-09 11:03:52 -0700 | [diff] [blame] | 77 | {{- end }} |