Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{- /* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame^] | 2 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 3 | # Copyright 2020-present Open Networking Foundation |
| 4 | # |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame^] | 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only |
| 7 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 8 | */ -}} |
| 9 | |
| 10 | --- |
| 11 | apiVersion: apps/v1 |
| 12 | kind: Deployment |
| 13 | metadata: |
| 14 | name: wowza |
| 15 | labels: |
| 16 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }} |
| 17 | spec: |
| 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: {} |