blob: d9f7798829d6e1c752137e92b599869544214e88 [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 Ronquillo6046ce32020-06-18 11:06:29 -07005# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07006
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007*/ -}}
8
9---
10apiVersion: apps/v1
11kind: Deployment
12metadata:
13 name: wowza
14 labels:
15{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }}
16spec:
17 replicas: {{ .Values.config.wowza.replica }}
18 selector:
19 matchLabels:
20{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 6 }}
21 template:
22 metadata:
23 labels:
24{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 8 }}
25 spec:
26 {{- if .Values.nodeSelectors.enabled }}
27 nodeSelector:
28 {{ .Values.nodeSelectors.wowza.label }}: {{ .Values.nodeSelectors.wowza.value }}
29 {{- end }}
30 containers:
31 - name: wowza
32 image: {{ .Values.images.tags.wowza }}
33 imagePullPolicy: {{ .Values.images.pullPolicy }}
34 {{- if .Values.resources.enabled }}
35 resources:
36{{ toYaml .Values.resources.wowza | indent 10 }}
37 {{- end }}
38 volumeMounts:
39 - mountPath: /usr/local/WowzaStreamingEngine/data
40 name: wowza
41 volumes:
42 - name: wowza
43 emptyDir: {}