blob: d9f7798829d6e1c752137e92b599869544214e88 [file] [log] [blame]
{{- /*
# Copyright 2020-present Open Networking Foundation
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
*/ -}}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wowza
labels:
{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }}
spec:
replicas: {{ .Values.config.wowza.replica }}
selector:
matchLabels:
{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 6 }}
template:
metadata:
labels:
{{ tuple "wowza" . | include "phylo.metadata_labels" | indent 8 }}
spec:
{{- if .Values.nodeSelectors.enabled }}
nodeSelector:
{{ .Values.nodeSelectors.wowza.label }}: {{ .Values.nodeSelectors.wowza.value }}
{{- end }}
containers:
- name: wowza
image: {{ .Values.images.tags.wowza }}
imagePullPolicy: {{ .Values.images.pullPolicy }}
{{- if .Values.resources.enabled }}
resources:
{{ toYaml .Values.resources.wowza | indent 10 }}
{{- end }}
volumeMounts:
- mountPath: /usr/local/WowzaStreamingEngine/data
name: wowza
volumes:
- name: wowza
emptyDir: {}