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.1.3
34 #storageClassName: default
37 clusterName: cassandra
38 secretName: &secretName cassandra-default-user
39 superuserName: &superusername cassandra
40 superuserPassword: &superuserpassword cassandra
42 authorizer: AllowAllAuthorizer
43 read_request_timeout: 10000ms
44 write_request_timeout: 10000ms
45 counter_write_request_timeout: 15000ms
47 heap_initial_size: 512M
62 #################################################################
64 # used to store the default superuser for k8ssandra-operator
65 #################################################################
69 externalSecret: '{{ tpl (default "" .Values.k8ssandraOperator.config.userCredentialsExternalSecret) . }}'
74 value: *superuserpassword
79 - baseaddr: "reaper-dc1"
81 name: "cassandra-dc1-reaper-service"
85 image: cassandra:3.11.4
88 # flag to enable debugging - application support required
91 # application configuration
93 cluster_domain: cluster.local
97 jvmOpts: -Dcassandra.consistent.rangemovement=false
98 clusterName: cassandra
102 # If hostNetwork is true then provide the comma separated list of seeds.
105 # default number of instances
114 # probe configuration parameters
116 initialDelaySeconds: 1
121 # necessary to disable liveness probe when setting breakpoints
122 # in debugger so K8s doesn't restart unresponsive container
126 initialDelaySeconds: 1
133 initialDelaySeconds: 10
144 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
145 publishNotReadyAddresses: true
155 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
162 # sidecar.istio.io/inject: "false"
163 traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001,7199,50051"
164 traffic.sidecar.istio.io/includeInboundPorts: '*'
165 traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001,7199,50051"
167 podManagementPolicy: OrderedReady
174 ## A manually managed Persistent Volume and Claim
175 ## Requires persistence.enabled: true
176 ## If defined, PVC must be created manually before volume will be bound
178 volumeReclaimPolicy: Retain
180 ## database data Persistent Volume Storage Class
181 ## If defined, storageClassName: <storageClass>
182 ## If set to "-", storageClassName: "", which disables dynamic provisioning
183 ## If undefined (the default) or set to null, no storageClassName spec is
184 ## set, choosing the default provisioner. (gp2 on AWS, standard on
185 ## GKE, AWS & OpenStack)
188 ## Not set as it depends of the backup enabledment or not.
189 accessMode: ReadWriteOnce
191 mountPath: /dockerdata-nfs
192 mountSubPath: cassandra
195 mountPath: /dockerdata-nfs/backup
200 # We usually recommend not to specify default resources and to leave this as a conscious
201 # choice for the user. This also increases chances charts run on environments with little
202 # resources, such as Minikube. If you do want to specify resources, uncomment the following
203 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
206 # Configure resource requests and limits
207 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
208 # Minimum memory for development is 2 CPU cores and 4GB memory
209 # Minimum memory for production is 4 CPU cores and 8GB memory
223 - name: system_traces
225 - name: system_distributed
227 #Pods Service Account
229 nameOverride: cassandra
236 image: bitnami/cassandra-exporter:2.3.4-debian-10-r641
237 pullPolicy: IfNotPresent
242 prometheus.io/scrape: 'true'
243 prometheus.io/port: '8080'
249 initialDelaySeconds: 30
259 initialDelaySeconds: 5
270 ## Namespace in which Prometheus is running
272 # namespace: monitoring
274 ## Interval at which metrics should be scraped.
277 ## Timeout after which the scrape is ended
280 ## ServiceMonitor selector labels
282 app.kubernetes.io/name: '{{ include "common.name" . }}'
283 helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
284 app.kubernetes.io/instance: '{{ include "common.release" . }}'
285 app.kubernetes.io/managed-by: '{{ .Release.Service }}'
287 ## RelabelConfigs to apply to samples before scraping
290 ## MetricRelabelConfigs to apply to samples before ingestion
291 metricRelabelings: []