Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | {{- /* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | # |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 5 | */ -}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: apps/v1 |
| 9 | kind: Deployment |
| 10 | metadata: |
| 11 | name: wowza |
| 12 | labels: |
| 13 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 4 }} |
| 14 | spec: |
| 15 | replicas: {{ .Values.config.wowza.replica }} |
| 16 | selector: |
| 17 | matchLabels: |
| 18 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 6 }} |
| 19 | template: |
| 20 | metadata: |
| 21 | labels: |
| 22 | {{ tuple "wowza" . | include "phylo.metadata_labels" | indent 8 }} |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame] | 23 | {{- if .Values.config.userPlane.enabled }} |
| 24 | annotations: |
| 25 | danm.k8s.io/interfaces: | |
| 26 | [ |
| 27 | {"clusterNetwork": "default"}, |
| 28 | {"clusterNetwork": {{ .Values.config.userPlane.name | quote }}, "ip": "dynamic"} |
| 29 | ] |
| 30 | {{- end }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 31 | spec: |
| 32 | {{- if .Values.nodeSelectors.enabled }} |
| 33 | nodeSelector: |
| 34 | {{ .Values.nodeSelectors.wowza.label }}: {{ .Values.nodeSelectors.wowza.value }} |
| 35 | {{- end }} |
Hyunsun Moon | 3d1e936 | 2020-11-29 20:03:51 -0800 | [diff] [blame] | 36 | {{- if .Values.images.credentials }} |
| 37 | imagePullSecrets: |
| 38 | - name: {{ .Release.Name }}.registry |
| 39 | {{- end }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 40 | containers: |
| 41 | - name: wowza |
| 42 | image: {{ .Values.images.tags.wowza }} |
| 43 | imagePullPolicy: {{ .Values.images.pullPolicy }} |
| 44 | {{- if .Values.resources.enabled }} |
| 45 | resources: |
| 46 | {{ toYaml .Values.resources.wowza | indent 10 }} |
| 47 | {{- end }} |
| 48 | volumeMounts: |
| 49 | - mountPath: /usr/local/WowzaStreamingEngine/data |
| 50 | name: wowza |
| 51 | volumes: |
| 52 | - name: wowza |
| 53 | emptyDir: {} |