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.10
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
59 #################################################################
61 # used to store the default superuser for k8ssandra-operator
62 #################################################################
66 externalSecret: '{{ tpl (default "" .Values.k8ssandraOperator.config.userCredentialsExternalSecret) . }}'
71 value: *superuserpassword
76 - baseaddr: "reaper-dc1"
78 name: "cassandra-dc1-reaper-service"
82 image: cassandra:3.11.4
85 # flag to enable debugging - application support required
88 # application configuration
90 cluster_domain: cluster.local
94 jvmOpts: -Dcassandra.consistent.rangemovement=false
95 clusterName: cassandra
99 # If hostNetwork is true then provide the comma separated list of seeds.
102 # default number of instances
111 # probe configuration parameters
113 initialDelaySeconds: 1
118 # necessary to disable liveness probe when setting breakpoints
119 # in debugger so K8s doesn't restart unresponsive container
123 initialDelaySeconds: 1
130 initialDelaySeconds: 10
141 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
142 publishNotReadyAddresses: true
152 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
159 # sidecar.istio.io/inject: "false"
160 traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001"
161 traffic.sidecar.istio.io/includeInboundPorts: '*'
162 traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001"
163 prometheus.io/scrape: 'true'
164 prometheus.io/port: '8080'
166 podManagementPolicy: OrderedReady
173 ## A manually managed Persistent Volume and Claim
174 ## Requires persistence.enabled: true
175 ## If defined, PVC must be created manually before volume will be bound
177 volumeReclaimPolicy: Retain
179 ## database data Persistent Volume Storage Class
180 ## If defined, storageClassName: <storageClass>
181 ## If set to "-", storageClassName: "", which disables dynamic provisioning
182 ## If undefined (the default) or set to null, no storageClassName spec is
183 ## set, choosing the default provisioner. (gp2 on AWS, standard on
184 ## GKE, AWS & OpenStack)
187 ## Not set as it depends of the backup enabledment or not.
188 accessMode: ReadWriteOnce
190 mountPath: /dockerdata-nfs
191 mountSubPath: cassandra
194 mountPath: /dockerdata-nfs/backup
199 # We usually recommend not to specify default resources and to leave this as a conscious
200 # choice for the user. This also increases chances charts run on environments with little
201 # resources, such as Minikube. If you do want to specify resources, uncomment the following
202 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
205 # Configure resource requests and limits
206 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
207 # Minimum memory for development is 2 CPU cores and 4GB memory
208 # Minimum memory for production is 4 CPU cores and 8GB memory
222 - name: system_traces
224 - name: system_distributed
226 #Pods Service Account
228 nameOverride: cassandra
235 image: bitnami/cassandra-exporter:2.3.4-debian-10-r641
236 pullPolicy: IfNotPresent
241 prometheus.io/scrape: 'true'
242 prometheus.io/port: '8080'
248 initialDelaySeconds: 30
258 initialDelaySeconds: 5
269 ## Namespace in which Prometheus is running
271 # namespace: monitoring
273 ## Interval at which metrics should be scraped.
276 ## Timeout after which the scrape is ended
279 ## ServiceMonitor selector labels
281 app.kubernetes.io/name: '{{ include "common.name" . }}'
282 helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
283 app.kubernetes.io/instance: '{{ include "common.release" . }}'
284 app.kubernetes.io/managed-by: '{{ .Release.Service }}'
286 ## RelabelConfigs to apply to samples before scraping
289 ## MetricRelabelConfigs to apply to samples before ingestion
290 metricRelabelings: []