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 2019-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 | {{ tuple "accelleran-cbrs-ricweb" . | include "accelleran-cbrs-common.service_account" }} |
| 10 | --- |
| 11 | apiVersion: apps/v1 |
| 12 | kind: StatefulSet |
| 13 | metadata: |
| 14 | name: accelleran-cbrs-ricweb |
| 15 | labels: |
| 16 | {{ tuple "accelleran-cbrs-ricweb" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }} |
| 17 | spec: |
| 18 | selector: |
| 19 | matchLabels: |
| 20 | {{ tuple "accelleran-cbrs-ricweb" . | include "accelleran-cbrs-common.metadata_labels" | indent 6 }} |
| 21 | serviceName: accelleran-cbrs-ricweb |
| 22 | template: |
| 23 | metadata: |
| 24 | labels: |
| 25 | {{ tuple "accelleran-cbrs-ricweb" . | include "accelleran-cbrs-common.metadata_labels" | indent 8 }} |
| 26 | spec: |
| 27 | serviceAccountName: accelleran-cbrs-ricweb |
| 28 | {{- if .Values.nodeSelectors.enabled }} |
| 29 | nodeSelector: |
| 30 | {{ .Values.nodeSelectors.accelleranCBRSCommon.label }}: {{ .Values.nodeSelectors.accelleranCBRSCommon.value }} |
| 31 | {{- end }} |
Hyunsun Moon | 1f868cf | 2021-05-08 18:26:44 -0700 | [diff] [blame] | 32 | {{- if hasKey .Values.images "pullSecrets" }} |
Hyunsun Moon | 8da1788 | 2020-10-14 21:28:44 -0500 | [diff] [blame] | 33 | imagePullSecrets: |
Hyunsun Moon | 1f868cf | 2021-05-08 18:26:44 -0700 | [diff] [blame] | 34 | {{ toYaml .Values.images.pullSecrets | indent 8 }} |
Hyunsun Moon | 8da1788 | 2020-10-14 21:28:44 -0500 | [diff] [blame] | 35 | {{- end }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 36 | initContainers: |
| 37 | - name: accelleran-cbrs-ric-dep-check |
| 38 | image: {{ .Values.images.tags.depCheck | quote }} |
| 39 | imagePullPolicy: {{ .Values.images.pullPolicy }} |
| 40 | securityContext: |
| 41 | allowPrivilegeEscalation: false |
| 42 | readOnlyRootFilesystem: false |
| 43 | runAsUser: 0 |
| 44 | env: |
| 45 | - name: POD_NAME |
| 46 | valueFrom: |
| 47 | fieldRef: |
| 48 | apiVersion: v1 |
| 49 | fieldPath: metadata.name |
| 50 | - name: NAMESPACE |
| 51 | valueFrom: |
| 52 | fieldRef: |
| 53 | apiVersion: v1 |
| 54 | fieldPath: metadata.namespace |
| 55 | - name: PATH |
| 56 | value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/ |
| 57 | - name: COMMAND |
| 58 | value: "echo done" |
| 59 | - name: DEPENDENCY_POD_JSON |
| 60 | value: '[{"labels": {"app": "accelleran-cbrs-ric"}, "requireSameNode": false}]' |
| 61 | |
| 62 | containers: |
| 63 | - name: ric-web |
| 64 | image: {{ .Values.images.tags.ricWeb }} |
| 65 | imagePullPolicy: {{ .Values.images.pullPolicy }} |
| 66 | env: |
| 67 | - name: NATS_URL |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 68 | value: {{ .Values.config.nats.url | quote }} |