blob: d1dcdc1e159d0d1f79bed6d82480e2545f7db44c [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 Ronquilloec2d3e42020-06-05 11:33:39 -07004# SPDX-License-Identifier: Apache-2.0
5# SPDX-License-Identifier: LicenseRef-ONF-Member-Only
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07006*/}}
7
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: ant-media
13 labels:
14{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
15spec:
16 selector:
17{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
18 ports:
19 - name: httpui
20 port: {{ .Values.config.antMedia.ports.httpui }}
21 protocol: TCP
22 - name: rtmp
23 port: {{ .Values.config.antMedia.ports.rtmp }}
24 protocol: TCP
25
26---
27apiVersion: v1
28kind: Service
29metadata:
30 name: ant-media-external
31 labels:
32{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
33spec:
34 selector:
35{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
36 type: NodePort
37 ports:
38 - name: httpui
39 port: {{ .Values.config.antMedia.ports.httpui }}
40 protocol: TCP
41 nodePort: {{ .Values.config.antMedia.ports.nodePorts.httpui }}
42 - name: rtmp
43 port: {{ .Values.config.antMedia.ports.rtmp }}
44 protocol: TCP
45 nodePort: {{ .Values.config.antMedia.ports.nodePorts.rtmp }}