blob: 4138b8dba9d3b31c3c6e9ccbe57946052894c661 [file] [log] [blame]
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07001{{/*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002# Copyright 2019-present Open Networking Foundation
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07003
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07004# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07005*/}}
6
7{{ tuple "ant-media" . | include "cdn-remote.service_account" }}
8---
9apiVersion: apps/v1
10kind: StatefulSet
11metadata:
12 name: ant-media
13 labels:
14{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }}
15spec:
16 replicas: {{ .Values.config.antMedia.replicas }}
17 selector:
18 matchLabels:
19{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 6 }}
20 serviceName: "ant-media"
21 template:
22 metadata:
23 labels:
24{{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 8 }}
25 spec:
26 {{- if .Values.nodeSelectors.enabled }}
27 nodeSelector:
28 {{ .Values.nodeSelectors.antMedia.label }}: {{ .Values.nodeSelectors.antMedia.value }}
29 {{- end }}
30 serviceAccountName: ant-media
31 containers:
32 - name: ant-media
33 image: {{ .Values.images.tags.antMedia | quote }}
34 imagePullPolicy: {{ .Values.images.pullPolicy }}
35 securityContext:
36 allowPrivilegeEscalation: false
37 readOnlyRootFilesystem: false
38 runAsUser: 0
39 stdin: true
40 tty: true
41 command: [ "bash", "-xc"]
42 args:
43 - cd /usr/local/antmedia && ./start.sh | tee /opt/start.log
44 {{- if .Values.resources.enabled }}
45 resources:
46{{ toYaml .Values.resources.antMedia | indent 10 }}
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -070047 {{- end }}