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 |
| 22 | --- |
| 23 | apiVersion: v1 |
| 24 | kind: Service |
| 25 | metadata: |
| 26 | name: hss-headless |
| 27 | labels: |
| 28 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 29 | spec: |
| 30 | selector: |
| 31 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 32 | clusterIP: None |
| 33 | ports: |
| 34 | - name: s6a |
| 35 | port: 3868 |
| 36 | protocol: TCP |
| 37 | {{- if .Values.config.hss.s6a.nodePort.enabled }} |
| 38 | --- |
| 39 | apiVersion: v1 |
| 40 | kind: Service |
| 41 | metadata: |
| 42 | name: hss-external |
| 43 | labels: |
| 44 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 45 | spec: |
| 46 | selector: |
| 47 | {{ tuple "hss" . | include "omec-control-plane.metadata_labels" | indent 4 }} |
| 48 | type: NodePort |
| 49 | ports: |
| 50 | - name: s6a |
| 51 | port: 3868 |
| 52 | protocol: TCP |
| 53 | nodePort: {{ .Values.config.hss.s6a.nodePort.port }} |
| 54 | {{- end }} |
Hyunsun Moon | 83ff735 | 2020-07-09 11:03:52 -0700 | [diff] [blame] | 55 | {{- end }} |