blob: 09993bd6018e8d79d7232f5508991ceb15d307a0 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{- /*
2# Copyright 2020-present Open Networking Foundation
3#
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---
8apiVersion: v1
9kind: Service
10metadata:
11 name: wowza
12 labels:
13{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }}
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080014{{- if .Values.config.userPlane.enabled }}
15 annotations:
16 danm.k8s.io/clusterNetwork: {{ .Values.config.userPlane.name }}
17 danm.k8s.io/selector: '{"app": "wowza"}'
18{{- end }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070019spec:
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080020{{- if .Values.config.userPlane.enabled }}
21 clusterIP: None
22{{- else }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070023 selector:
24{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }}
25 type: NodePort
26 ports:
27 - name: management
28 port: 8088
29 protocol: TCP
30 nodePort: 30088
31 - name: rtmp
32 port: 1935 # RTMP/RTMPT/RTMPE/RTSP(interleaved)
33 targetPort: 1935
34 protocol: TCP
35 nodePort: 31935
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080036{{- end }}