blob: 31772482201c4e3686af53cb2a85602f4f5b143d [file] [log] [blame]
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07005*/}}
6
7---
8apiVersion: v1
9kind: Service
10metadata:
11 name: ant-media
12 labels:
13{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
14spec:
15 selector:
16{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
17 ports:
18 - name: httpui
19 port: {{ .Values.config.antMedia.ports.httpui }}
20 protocol: TCP
21 - name: rtmp
22 port: {{ .Values.config.antMedia.ports.rtmp }}
23 protocol: TCP
24
25---
26apiVersion: v1
27kind: Service
28metadata:
29 name: ant-media-external
30 labels:
31{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
32spec:
33 selector:
34{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
35 type: NodePort
36 ports:
37 - name: httpui
38 port: {{ .Values.config.antMedia.ports.httpui }}
39 protocol: TCP
40 nodePort: {{ .Values.config.antMedia.ports.nodePorts.httpui }}
41 - name: rtmp
42 port: {{ .Values.config.antMedia.ports.rtmp }}
43 protocol: TCP
44 nodePort: {{ .Values.config.antMedia.ports.nodePorts.rtmp }}