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 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.service_account" }} |
| 9 | --- |
| 10 | apiVersion: apps/v1 |
| 11 | kind: StatefulSet |
| 12 | metadata: |
| 13 | name: accelleran-cbrs-nats |
| 14 | labels: |
| 15 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }} |
| 16 | spec: |
| 17 | selector: |
| 18 | matchLabels: |
| 19 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 6 }} |
| 20 | serviceName: accelleran-cbrs-nats |
| 21 | template: |
| 22 | metadata: |
| 23 | labels: |
| 24 | {{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 8 }} |
| 25 | spec: |
| 26 | {{- if .Values.nodeSelectors.enabled }} |
| 27 | nodeSelector: |
| 28 | {{ .Values.nodeSelectors.accelleranCBRSCommon.label }}: {{ .Values.nodeSelectors.accelleranCBRSCommon.value }} |
| 29 | {{- end }} |
| 30 | serviceAccountName: accelleran-cbrs-nats |
Hyunsun Moon | 1f868cf | 2021-05-08 18:26:44 -0700 | [diff] [blame] | 31 | {{- if hasKey .Values.images "pullSecrets" }} |
Hyunsun Moon | 8da1788 | 2020-10-14 21:28:44 -0500 | [diff] [blame] | 32 | imagePullSecrets: |
Hyunsun Moon | 1f868cf | 2021-05-08 18:26:44 -0700 | [diff] [blame] | 33 | {{ toYaml .Values.images.pullSecrets | indent 8 }} |
Hyunsun Moon | 8da1788 | 2020-10-14 21:28:44 -0500 | [diff] [blame] | 34 | {{- end }} |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 35 | containers: |
| 36 | - name: nats |
| 37 | image: {{ .Values.images.tags.nats }} |
| 38 | imagePullPolicy: {{ .Values.images.pullPolicy }} |
| 39 | command: ["/entrypoint.sh"] |
| 40 | args: ["/usr/bin/gnatsd", "-c", "/etc/gnatsd.conf" ] |
| 41 | {{- if .Values.resources.enabled }} |
| 42 | resources: |
| 43 | {{ toYaml .Values.resources.accelleranCBRSCommon | indent 10 }} |
| 44 | {{- end }} |