blob: f42ca821a5e32f8a0539da9e52b25a56df68bc54 [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
Scott Baker4cad5ee2022-06-09 14:17:35 -07004# SPDX-License-Identifier: Apache-2.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 }}