Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 1 | {{/* |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | # Copyright 2019-present Open Networking Foundation |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 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 | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 5 | */}} |
| 6 | |
| 7 | {{ tuple "ant-media" . | include "cdn-remote.service_account" }} |
| 8 | --- |
| 9 | apiVersion: apps/v1 |
| 10 | kind: StatefulSet |
| 11 | metadata: |
| 12 | name: ant-media |
| 13 | labels: |
| 14 | {{ tuple "ant-media" . | include "cdn-remote.metadata_labels" | indent 4 }} |
| 15 | spec: |
| 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 Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 47 | {{- end }} |