Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{- /* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | # |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 5 | */ -}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: v1 |
| 9 | kind: Service |
| 10 | metadata: |
| 11 | name: wowza |
| 12 | labels: |
| 13 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }} |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame^] | 14 | {{- 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 Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 19 | spec: |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame^] | 20 | {{- if .Values.config.userPlane.enabled }} |
| 21 | clusterIP: None |
| 22 | {{- else }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 23 | 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 Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame^] | 36 | {{- end }} |