blob: 22a0a81ab7457ab929c9f0df561b4f2fba0a9b98 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo223db002020-06-05 10:28:22 -07005*/}}
6
7{{- $context := . -}}
8{{ range .Values.config.phylo.sources }}
9{{- $name := printf "%s-%s" "phylo" .key -}}
10---
11apiVersion: v1
12kind: Service
13metadata:
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080014 name: rtsp-server-{{ .key }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070015 labels:
16{{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }}
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080017{{- 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 Ronquillo223db002020-06-05 10:28:22 -070022spec:
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080023{{- if $context.Values.config.userPlane.enabled }}
24 clusterIP: None
25{{- else }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070026 selector:
27{{ tuple $name $context | include "phylo.metadata_labels" | indent 4 }}
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080028 type: NodePort
Jeremy Ronquillo223db002020-06-05 10:28:22 -070029 ports:
30 - port: 8554
31 targetPort: 8554
32 protocol: TCP
33 name: tcp-8554
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080034{{- end }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070035{{ end }}