blob: 71bf03ceb16c4b60e810c411bd9ffa225535b4f5 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{- /*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003# Copyright 2020-present Open Networking Foundation
4#
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07005# SPDX-License-Identifier: Apache-2.0
6# SPDX-License-Identifier: LicenseRef-ONF-Member-Only
7
Jeremy Ronquillo223db002020-06-05 10:28:22 -07008*/ -}}
9
10---
11apiVersion: apps/v1
12kind: Deployment
13metadata:
14 name: wowza
15 labels:
16{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }}
17spec:
18 replicas: {{ .Values.config.wowza.replica }}
19 selector:
20 matchLabels:
21{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 6 }}
22 template:
23 metadata:
24 labels:
25{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 8 }}
26 spec:
27 {{- if .Values.nodeSelectors.enabled }}
28 nodeSelector:
29 {{ .Values.nodeSelectors.wowza.label }}: {{ .Values.nodeSelectors.wowza.value }}
30 {{- end }}
31 containers:
32 - name: wowza
33 image: {{ .Values.images.tags.wowza }}
34 imagePullPolicy: {{ .Values.images.pullPolicy }}
35 {{- if .Values.resources.enabled }}
36 resources:
37{{ toYaml .Values.resources.wowza | indent 10 }}
38 {{- end }}
39 volumeMounts:
40 - mountPath: /usr/local/WowzaStreamingEngine/data
41 name: wowza
42 volumes:
43 - name: wowza
44 emptyDir: {}