blob: 03acf63ef224b59f34f53ed303b7349679f14438 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{- /*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003# Copyright 2020-present Open Networking Foundation
4#
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07005# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07006
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007*/ -}}
8
9apiVersion: apps/v1
10kind: Deployment
11metadata:
12 name: deepstream
13 labels:
14{{ tuple "deepstream" . | include "deepstream.metadata_labels" | indent 4 }}
15spec:
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