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 | |
| 7 | {{- $context := . -}} |
| 8 | {{ range .Values.config.phylo.sources }} |
| 9 | {{- $name := printf "%s-%s" "phylo" .key -}} |
| 10 | --- |
| 11 | apiVersion: v1 |
| 12 | kind: Service |
| 13 | metadata: |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame] | 14 | name: rtsp-server-{{ .key }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 15 | labels: |
| 16 | {{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }} |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame] | 17 | {{- if $context.Values.config.userPlane.enabled }} |
| 18 | annotations: |
| 19 | danm.k8s.io/clusterNetwork: {{ $context.Values.config.userPlane.name }} |
| 20 | danm.k8s.io/selector: '{"app": {{ $name | quote }}}' |
| 21 | {{- end }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 22 | spec: |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame] | 23 | {{- if $context.Values.config.userPlane.enabled }} |
| 24 | clusterIP: None |
| 25 | {{- else }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 26 | selector: |
| 27 | {{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }} |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame] | 28 | type: NodePort |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 29 | ports: |
| 30 | - port: 8554 |
| 31 | targetPort: 8554 |
| 32 | protocol: TCP |
| 33 | name: tcp-8554 |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame] | 34 | {{- end }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 35 | {{ end }} |