1 # Copyright © 2022 Amdocs, Bell Canada, AT&T, Bitnami
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Default values for cassandra.
16 # This is a YAML-formatted file.
17 # Declare variables to be passed into your templates.
18 global: # global defaults
21 mountPath: /dockerdata-nfs
23 mountPath: /dockerdata-nfs/backup
25 # flag to enable the DB creation via k8ssandra-operator
27 # if useOperator set to "true", set "enableServiceAccount to "false"
28 # as the SA is created by the Operator
29 enableServiceAccount: false
32 cassandraVersion: 4.0.1
34 #storageClassName: default
37 clusterName: cassandra
38 secretName: &secretName cassandra-default-user
39 superuserName: &superusername cassandra
40 superuserPassword: &superuserpassword cassandra
42 authorizer: AllowAllAuthorizer
44 heap_initial_size: 512M
56 #################################################################
58 # used to store the default superuser for k8ssandra-operator
59 #################################################################
63 externalSecret: '{{ tpl (default "" .Values.k8ssandraOperator.config.userCredentialsExternalSecret) . }}'
68 value: *superuserpassword
73 - baseaddr: "reaper-dc1"
75 name: "cassandra-dc1-reaper-service"
79 image: cassandra:3.11.4
82 # flag to enable debugging - application support required
85 # application configuration
87 cluster_domain: cluster.local
91 jvmOpts: -Dcassandra.consistent.rangemovement=false
92 clusterName: cassandra
96 # If hostNetwork is true then provide the comma separated list of seeds.
99 # default number of instances
108 # probe configuration parameters
110 initialDelaySeconds: 1
115 # necessary to disable liveness probe when setting breakpoints
116 # in debugger so K8s doesn't restart unresponsive container
120 initialDelaySeconds: 1
127 initialDelaySeconds: 10
138 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
139 publishNotReadyAddresses: true
149 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
156 # sidecar.istio.io/inject: "false"
157 traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001"
158 traffic.sidecar.istio.io/includeInboundPorts: '*'
159 traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001"
160 prometheus.io/scrape: 'true'
161 prometheus.io/port: '8080'
163 podManagementPolicy: OrderedReady
170 ## A manually managed Persistent Volume and Claim
171 ## Requires persistence.enabled: true
172 ## If defined, PVC must be created manually before volume will be bound
174 volumeReclaimPolicy: Retain
176 ## database data Persistent Volume Storage Class
177 ## If defined, storageClassName: <storageClass>
178 ## If set to "-", storageClassName: "", which disables dynamic provisioning
179 ## If undefined (the default) or set to null, no storageClassName spec is
180 ## set, choosing the default provisioner. (gp2 on AWS, standard on
181 ## GKE, AWS & OpenStack)
184 ## Not set as it depends of the backup enabledment or not.
185 accessMode: ReadWriteOnce
187 mountPath: /dockerdata-nfs
188 mountSubPath: cassandra
191 mountPath: /dockerdata-nfs/backup
196 # We usually recommend not to specify default resources and to leave this as a conscious
197 # choice for the user. This also increases chances charts run on environments with little
198 # resources, such as Minikube. If you do want to specify resources, uncomment the following
199 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
202 # Configure resource requests and limits
203 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
204 # Minimum memory for development is 2 CPU cores and 4GB memory
205 # Minimum memory for production is 4 CPU cores and 8GB memory
219 - name: system_traces
221 - name: system_distributed
223 #Pods Service Account
225 nameOverride: cassandra
232 image: bitnami/cassandra-exporter:2.3.4-debian-10-r641
233 pullPolicy: IfNotPresent
238 prometheus.io/scrape: 'true'
239 prometheus.io/port: '8080'
245 initialDelaySeconds: 30
255 initialDelaySeconds: 5
266 ## Namespace in which Prometheus is running
268 # namespace: monitoring
270 ## Interval at which metrics should be scraped.
273 ## Timeout after which the scrape is ended
276 ## ServiceMonitor selector labels
278 app.kubernetes.io/name: '{{ include "common.name" . }}'
279 helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
280 app.kubernetes.io/instance: '{{ include "common.release" . }}'
281 app.kubernetes.io/managed-by: '{{ .Release.Service }}'
283 ## RelabelConfigs to apply to samples before scraping
286 ## MetricRelabelConfigs to apply to samples before ingestion
287 metricRelabelings: []