blob: 0ba1bd50ff966ef2d05c8e7909e943b36a0089c0 [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: apps/v1
9kind: Deployment
10metadata:
11 name: wowza
12 labels:
13{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }}
14spec:
15 replicas: {{ .Values.config.wowza.replica }}
16 selector:
17 matchLabels:
18{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 6 }}
19 template:
20 metadata:
21 labels:
22{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 8 }}
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080023 {{- if .Values.config.userPlane.enabled }}
24 annotations:
25 danm.k8s.io/interfaces: |
26 [
27 {"clusterNetwork": "default"},
28 {"clusterNetwork": {{ .Values.config.userPlane.name | quote }}, "ip": "dynamic"}
29 ]
30 {{- end }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070031 spec:
32 {{- if .Values.nodeSelectors.enabled }}
33 nodeSelector:
34 {{ .Values.nodeSelectors.wowza.label }}: {{ .Values.nodeSelectors.wowza.value }}
35 {{- end }}
Hyunsun Moon3d1e9362020-11-29 20:03:51 -080036 {{- if .Values.images.credentials }}
37 imagePullSecrets:
38 - name: {{ .Release.Name }}.registry
39 {{- end }}
Jeremy Ronquillo223db002020-06-05 10:28:22 -070040 containers:
41 - name: wowza
42 image: {{ .Values.images.tags.wowza }}
43 imagePullPolicy: {{ .Values.images.pullPolicy }}
44 {{- if .Values.resources.enabled }}
45 resources:
46{{ toYaml .Values.resources.wowza | indent 10 }}
47 {{- end }}
48 volumeMounts:
49 - mountPath: /usr/local/WowzaStreamingEngine/data
50 name: wowza
51 volumes:
52 - name: wowza
53 emptyDir: {}