Hyunsun Moon | cbc41f1 | 2020-02-27 11:23:05 -0800 | [diff] [blame] | 1 | {{- /* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | */ -}} |
| 16 | |
| 17 | --- |
| 18 | apiVersion: apps/v1 |
| 19 | kind: Deployment |
| 20 | metadata: |
| 21 | name: wowza |
| 22 | labels: |
| 23 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }} |
| 24 | spec: |
| 25 | replicas: {{ .Values.config.wowza.replica }} |
| 26 | selector: |
| 27 | matchLabels: |
| 28 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 6 }} |
| 29 | template: |
| 30 | metadata: |
| 31 | labels: |
| 32 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 8 }} |
| 33 | spec: |
| 34 | {{- if .Values.nodeSelectors.enabled }} |
| 35 | nodeSelector: |
| 36 | {{ .Values.nodeSelectors.wowza.label }}: {{ .Values.nodeSelectors.wowza.value }} |
| 37 | {{- end }} |
| 38 | containers: |
| 39 | - name: wowza |
| 40 | image: {{ .Values.images.tags.wowza }} |
| 41 | imagePullPolicy: {{ .Values.images.pullPolicy }} |
| 42 | {{- if .Values.resources.enabled }} |
| 43 | resources: |
| 44 | {{ toYaml .Values.resources.wowza | indent 10 }} |
| 45 | {{- end }} |
| 46 | volumeMounts: |
| 47 | - mountPath: /usr/local/WowzaStreamingEngine/data |
| 48 | name: wowza |
| 49 | volumes: |
| 50 | - name: wowza |
| 51 | emptyDir: {} |