blob: fba96bbc801a45e835d5c48dbcdb9db7b21c5cd6 [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001{{- /*
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002
Jeremy Ronquillo223db002020-06-05 10:28:22 -07003# Copyright 2019-present Open Networking Foundation
4#
Jeremy Ronquillo6046ce32020-06-18 11:06:29 -07005# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07006
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007*/ -}}
8{{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.service_account" }}
9---
10apiVersion: apps/v1
11kind: StatefulSet
12metadata:
13 name: accelleran-cbrs-nats
14 labels:
15{{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }}
16spec:
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
31 containers:
32 - name: nats
33 image: {{ .Values.images.tags.nats }}
34 imagePullPolicy: {{ .Values.images.pullPolicy }}
35 command: ["/entrypoint.sh"]
36 args: ["/usr/bin/gnatsd", "-c", "/etc/gnatsd.conf" ]
37 {{- if .Values.resources.enabled }}
38 resources:
39{{ toYaml .Values.resources.accelleranCBRSCommon | indent 10 }}
40 {{- end }}