blob: 6684fdcbf2925986dc9d7c5040ab54b2916f2c04 [file] [log] [blame]
Hyunsun Moon887e3e62020-02-21 15:27:12 -08001{{- /*
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
17apiVersion: apps/v1
18kind: Deployment
19metadata:
20 name: deepstream
21 labels:
22{{ tuple "deepstream" . | include "deepstream.metadata_labels" | indent 4 }}
23spec:
24 selector:
25 matchLabels:
26{{ tuple "deepstream" . | include "deepstream.metadata_labels" | indent 6 }}
27 template:
28 metadata:
29 labels:
30{{ tuple "deepstream" . | include "deepstream.metadata_labels" | indent 8 }}
31 spec:
32 {{- if .Values.nodeSelectors.enabled }}
33 nodeSelector:
34 {{ .Values.nodeSelectors.deepstream.label }}: {{ .Values.nodeSelectors.deepstream.value }}
35 {{- end }}
36 hostNetwork: true
37 containers:
38 - name: deepstream
39 image: {{ .Values.images.tags.deepstreamTx2 }}
40 imagePullPolicy: {{ .Values.images.pullPolicy }}
41 {{- if .Values.resources.enabled }}
42 resources:
43{{ toYaml .Values.resources.deepstream | indent 10 }}
44 {{- end }}
45 env:
46 - name: DISPLAY
47 value: {{ .Values.config.deepstream.display.display }}
48 volumeMounts:
49 - name: configs
50 mountPath: /configs
51 readOnly: true
52 - name: x11-unix
53 mountPath: /tmp/.X11-unix
54 - name: argus-socket
55 mountPath: /tmp/argus_socket
56 volumes:
57 - name: configs
58 configMap:
59 defaultMode: 0644
60 name: deepstream
61 - name: x11-unix
62 hostPath:
63 path: /tmp/.X11-unix
64 - name: argus-socket
65 hostPath:
66 path: /tmp/argus_socket