blob: b404e4a729a68c46e7c57a96e3c8db168801bd36 [file] [log] [blame]
Sean Condon59a0a982023-05-18 18:13:15 +01001# SPDX-FileCopyrightText: 2022-present Intel Corporation
2#
3# SPDX-License-Identifier: Apache-2.0
4
5
6apiVersion: raft.atomix.io/v1beta3
7kind: RaftCluster
8metadata:
9 name: {{ template "global.atomix.consensus.cluster.name" . }}
10 namespace: {{ .Release.Namespace }}
11 labels:
12 name: {{ template "global.atomix.consensus.cluster.name" . }}
13 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
14 release: "{{ .Release.Name }}"
15 heritage: "{{ .Release.Service }}"
16spec:
17 replicas: {{ .Values.atomix.store.consensus.replicas }}
18 {{- if .Values.atomix.store.consensus.image.tag }}
19 image: "{{ .Values.atomix.store.consensus.image.repository }}:{{ .Values.atomix.store.consensus.image.tag }}"
20 {{- end }}
21 {{- with .Values.atomix.store.consensus.image.pullPolicy }}
22 imagePullPolicy: {{ . }}
23 {{- end }}
24 {{- with .Values.atomix.store.consensus.image.pullSecrets }}
25 imagePullSecrets:
26 {{- toYaml . | nindent 4 }}
27 {{- end }}
28 {{- with .Values.atomix.store.consensus.securityContext }}
29 securityContext:
30 {{- toYaml . | nindent 4 }}
31 {{- end }}
32 persistence: {{- .Values.atomix.store.consensus.persistence | toYaml | nindent 4 }}
33 logging:
34 encoding: {{ .Values.atomix.store.consensus.logging.encoding }}
35 rootLevel: {{ .Values.atomix.store.consensus.logging.level }}
36 {{- if .Values.atomix.store.consensus.logging.loggers }}
37 loggers:
38 {{- range $key, $value := .Values.atomix.store.consensus.logging.loggers }}
39 - name: {{ $key }}
40 level: {{ $value }}
41 {{- end }}
42 {{- end }}