blob: f6b96650b144b580757f5100784d9ac480493372 [file] [log] [blame]
Woojoong Kim4feaddf2019-11-21 00:05:07 -08001{{- /*
2# Copyright 2019-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15*/ -}}
16{{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.service_account" }}
17---
18apiVersion: apps/v1
19kind: StatefulSet
20metadata:
21 name: accelleran-cbrs-nats
22 labels:
23{{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 4 }}
24spec:
25 selector:
26 matchLabels:
27{{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 6 }}
28 serviceName: accelleran-cbrs-nats
29 template:
30 metadata:
31 labels:
32{{ tuple "accelleran-cbrs-nats" . | include "accelleran-cbrs-common.metadata_labels" | indent 8 }}
33 spec:
34 {{- if .Values.nodeSelectors.enabled }}
35 nodeSelector:
36 {{ .Values.nodeSelectors.accelleranCBRSCommon.label }}: {{ .Values.nodeSelectors.accelleranCBRSCommon.value }}
37 {{- end }}
38 serviceAccountName: accelleran-cbrs-nats
39 containers:
40 - name: nats
41 image: {{ .Values.images.tags.nats }}
42 imagePullPolicy: {{ .Values.images.pullPolicy }}
43 command: ["/entrypoint.sh"]
44 args: ["/usr/bin/gnatsd", "-c", "/etc/gnatsd.conf" ]
45 {{- if .Values.resources.enabled }}
46 resources:
47{{ toYaml .Values.resources.accelleranCBRSCommon | indent 10 }}
48 {{- end }}