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 | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 6 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 7 | */ -}} |
| 8 | |
| 9 | apiVersion: apps/v1 |
| 10 | kind: Deployment |
| 11 | metadata: |
| 12 | name: deepstream |
| 13 | labels: |
| 14 | {{ tuple "deepstream" . | include "deepstream.metadata_labels" | indent 4 }} |
| 15 | spec: |
| 16 | selector: |
| 17 | matchLabels: |
| 18 | {{ tuple "deepstream" . | include "deepstream.metadata_labels" | indent 6 }} |
| 19 | template: |
| 20 | metadata: |
| 21 | labels: |
| 22 | {{ tuple "deepstream" . | include "deepstream.metadata_labels" | indent 8 }} |
| 23 | spec: |
| 24 | {{- if .Values.nodeSelectors.enabled }} |
| 25 | nodeSelector: |
| 26 | {{ .Values.nodeSelectors.deepstream.label }}: {{ .Values.nodeSelectors.deepstream.value }} |
| 27 | {{- end }} |
| 28 | hostNetwork: true |
| 29 | containers: |
| 30 | - name: deepstream |
| 31 | image: {{ .Values.images.tags.deepstreamTx2 }} |
| 32 | imagePullPolicy: {{ .Values.images.pullPolicy }} |
| 33 | {{- if .Values.resources.enabled }} |
| 34 | resources: |
| 35 | {{ toYaml .Values.resources.deepstream | indent 10 }} |
| 36 | {{- end }} |
| 37 | env: |
| 38 | - name: DISPLAY |
| 39 | value: {{ .Values.config.deepstream.display.display }} |
| 40 | volumeMounts: |
| 41 | - name: configs |
| 42 | mountPath: /configs |
| 43 | readOnly: true |
| 44 | - name: x11-unix |
| 45 | mountPath: /tmp/.X11-unix |
| 46 | - name: argus-socket |
| 47 | mountPath: /tmp/argus_socket |
| 48 | volumes: |
| 49 | - name: configs |
| 50 | configMap: |
| 51 | defaultMode: 0644 |
| 52 | name: deepstream |
| 53 | - name: x11-unix |
| 54 | hostPath: |
| 55 | path: /tmp/.X11-unix |
| 56 | - name: argus-socket |
| 57 | hostPath: |
| 58 | path: /tmp/argus_socket |