blob: 0ba1bd50ff966ef2d05c8e7909e943b36a0089c0 [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 }}
{{- if .Values.config.userPlane.enabled }}
annotations:
danm.k8s.io/interfaces: |
[
{"clusterNetwork": "default"},
{"clusterNetwork": {{ .Values.config.userPlane.name | quote }}, "ip": "dynamic"}
]
{{- end }}
spec:
{{- if .Values.nodeSelectors.enabled }}
nodeSelector:
{{ .Values.nodeSelectors.wowza.label }}: {{ .Values.nodeSelectors.wowza.value }}
{{- end }}
{{- if .Values.images.credentials }}
imagePullSecrets:
- name: {{ .Release.Name }}.registry
{{- 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: {}