blob: 71bf03ceb16c4b60e810c411bd9ffa225535b4f5 [file] [log] [blame]
{{- /*
# Copyright 2020-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only
*/ -}}
---
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: {}