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
55 #################################################################
57 # used to store the default superuser for k8ssandra-operator
58 #################################################################
62 externalSecret: '{{ tpl (default "" .Values.k8ssandraOperator.config.userCredentialsExternalSecret) . }}'
67 value: *superuserpassword
72 - baseaddr: "reaper-dc1"
74 name: "cassandra-dc1-reaper-service"
78 image: cassandra:3.11.4
81 # flag to enable debugging - application support required
84 # application configuration
86 cluster_domain: cluster.local
90 jvmOpts: -Dcassandra.consistent.rangemovement=false
91 clusterName: cassandra
95 # If hostNetwork is true then provide the comma separated list of seeds.
98 # default number of instances
107 # probe configuration parameters
109 initialDelaySeconds: 1
114 # necessary to disable liveness probe when setting breakpoints
115 # in debugger so K8s doesn't restart unresponsive container
119 initialDelaySeconds: 1
126 initialDelaySeconds: 10
137 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
138 publishNotReadyAddresses: true
148 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
155 # sidecar.istio.io/inject: "false"
156 traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001"
157 traffic.sidecar.istio.io/includeInboundPorts: '*'
158 traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001"
159 prometheus.io/scrape: 'true'
160 prometheus.io/port: '8080'
162 podManagementPolicy: OrderedReady
169 ## A manually managed Persistent Volume and Claim
170 ## Requires persistence.enabled: true
171 ## If defined, PVC must be created manually before volume will be bound
173 volumeReclaimPolicy: Retain
175 ## database data Persistent Volume Storage Class
176 ## If defined, storageClassName: <storageClass>
177 ## If set to "-", storageClassName: "", which disables dynamic provisioning
178 ## If undefined (the default) or set to null, no storageClassName spec is
179 ## set, choosing the default provisioner. (gp2 on AWS, standard on
180 ## GKE, AWS & OpenStack)
183 ## Not set as it depends of the backup enabledment or not.
184 accessMode: ReadWriteOnce
186 mountPath: /dockerdata-nfs
187 mountSubPath: cassandra
190 mountPath: /dockerdata-nfs/backup
195 # We usually recommend not to specify default resources and to leave this as a conscious
196 # choice for the user. This also increases chances charts run on environments with little
197 # resources, such as Minikube. If you do want to specify resources, uncomment the following
198 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
201 # Configure resource requests and limits
202 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
203 # Minimum memory for development is 2 CPU cores and 4GB memory
204 # Minimum memory for production is 4 CPU cores and 8GB memory
218 - name: system_traces
220 - name: system_distributed
222 #Pods Service Account
224 nameOverride: cassandra
231 image: bitnami/cassandra-exporter:2.3.4-debian-10-r641
232 pullPolicy: IfNotPresent
237 prometheus.io/scrape: 'true'
238 prometheus.io/port: '8080'
244 initialDelaySeconds: 30
254 initialDelaySeconds: 5
265 ## Namespace in which Prometheus is running
267 # namespace: monitoring
269 ## Interval at which metrics should be scraped.
272 ## Timeout after which the scrape is ended
275 ## ServiceMonitor selector labels
277 app.kubernetes.io/name: '{{ include "common.name" . }}'
278 helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
279 app.kubernetes.io/instance: '{{ include "common.release" . }}'
280 app.kubernetes.io/managed-by: '{{ .Release.Service }}'
282 ## RelabelConfigs to apply to samples before scraping
285 ## MetricRelabelConfigs to apply to samples before ingestion
286 metricRelabelings: []