blob: 842c268c8a4506c45928712ad51d0b37e107d25c [file] [log] [blame]
Suresh Charane1a70a12022-01-13 06:56:53 -05001# Copyright © 2022 Amdocs, Bell Canada, AT&T, Bitnami
prpatelafedf2c2018-09-07 15:28:38 +00002#
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
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
15# Default values for cassandra.
16# This is a YAML-formatted file.
17# Declare variables to be passed into your templates.
18global: # global defaults
19 nodePortPrefix: 302
Akansha Dua7b6e1982019-09-04 13:36:12 +000020 persistence:
21 mountPath: /dockerdata-nfs
22 backup:
23 mountPath: /dockerdata-nfs/backup
Andreas Geisslercfd84342023-08-16 17:18:49 +020024 cassandra:
25 # flag to enable the DB creation via k8ssandra-operator
26 useOperator: true
27 # if useOperator set to "true", set "enableServiceAccount to "false"
28 # as the SA is created by the Operator
29 enableServiceAccount: false
prpatelafedf2c2018-09-07 15:28:38 +000030
dasarathi52802465e8f782023-05-03 09:51:20 +000031k8ssandraOperator:
Andreas Geisslerc4851c82024-02-23 09:06:17 +010032 cassandraVersion: 4.1.3
dasarathi52802465e8f782023-05-03 09:51:20 +000033 persistence:
Andreas Geissler7e14d242023-07-17 17:25:07 +020034 #storageClassName: default
dasarathi52802465e8f782023-05-03 09:51:20 +000035 size: 10Gi
36 config:
37 clusterName: cassandra
38 secretName: &secretName cassandra-default-user
39 superuserName: &superusername cassandra
40 superuserPassword: &superuserpassword cassandra
41 casOptions:
42 authorizer: AllowAllAuthorizer
Andreas Geissler0d6bdb82024-08-21 10:06:35 +020043 read_request_timeout: 15000ms
44 write_request_timeout: 15000ms
Andreas Geisslerc4851c82024-02-23 09:06:17 +010045 counter_write_request_timeout: 15000ms
Andreas Geissler0d6bdb82024-08-21 10:06:35 +020046 request_timeout: 15000ms
47 auto_snapshot: false
48 commitlog_segment_size: 128MiB
49 commitlog_sync_period: 15000ms
50 concurrent_reads: 16
51 concurrent_writes: 16
52 counter_cache_size: 16MiB
dasarathi52802465e8f782023-05-03 09:51:20 +000053 jvmOptions:
Andreas Geissler891eeb72023-10-12 13:10:53 +020054 heap_initial_size: 512M
Andreas Geissler0d6bdb82024-08-21 10:06:35 +020055 heap_max_size: 4096M
dasarathi52802465e8f782023-05-03 09:51:20 +000056 hostNetwork: false
57 datacenters:
58 - name: dc1
59 size: 3
Andreas Geissler0d6bdb82024-08-21 10:06:35 +020060 resources:
61 requests:
62 cpu: 2
63 memory: 8Gi
64 limits:
65 cpu: 8
66 memory: 8Gi
Andreas Geisslerb0530252023-11-10 11:28:49 +010067 reaper:
68 enabled: true
dasarathi52802465e8f782023-05-03 09:51:20 +000069 stargate:
Andreas Geisslerc4851c82024-02-23 09:06:17 +010070 enabled: false
71 tag: v1.0.77
dasarathi52802465e8f782023-05-03 09:51:20 +000072 size: 1
73 jvmOptions:
74 heapSize: 384Mi
75
76#################################################################
77# Secrets metaconfig
78# used to store the default superuser for k8ssandra-operator
79#################################################################
80secrets:
81 - uid: *secretName
82 type: genericKV
83 externalSecret: '{{ tpl (default "" .Values.k8ssandraOperator.config.userCredentialsExternalSecret) . }}'
84 envs:
85 - name: username
86 value: *superusername
87 - name: password
88 value: *superuserpassword
89
90ingress:
91 enabled: false
92 service:
93 - baseaddr: "reaper-dc1"
94 path: "/webui"
95 name: "cassandra-dc1-reaper-service"
96 port: 8080
97
prpatelafedf2c2018-09-07 15:28:38 +000098# application image
Sylvain Desbureaux7743d8b2020-11-19 16:45:23 +010099image: cassandra:3.11.4
prpatelafedf2c2018-09-07 15:28:38 +0000100pullPolicy: Always
101
102# flag to enable debugging - application support required
103debugEnabled: false
104
prpatelafedf2c2018-09-07 15:28:38 +0000105# application configuration
106config:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000107 cluster_domain: cluster.local
prpatelafedf2c2018-09-07 15:28:38 +0000108 heap:
Michal Jagiello9a3395b2022-06-07 08:38:50 +0000109 max: 4096M
110 min: 200M
prpatelafedf2c2018-09-07 15:28:38 +0000111 jvmOpts: -Dcassandra.consistent.rangemovement=false
112 clusterName: cassandra
113 dataCenter: Pod
114 rackName: Rack
115 autoBootstrap: true
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000116 # If hostNetwork is true then provide the comma separated list of seeds.
117 #seeds:seed1,seed2
prpatelafedf2c2018-09-07 15:28:38 +0000118
119# default number of instances
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000120replicaCount: 3
121
122hostNetwork: false
prpatelafedf2c2018-09-07 15:28:38 +0000123
124nodeSelector: {}
125
126affinity: {}
127
128# probe configuration parameters
129liveness:
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +0200130 initialDelaySeconds: 1
131 periodSeconds: 10
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +0100132 timeoutSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000133 successThreshold: 1
134 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +0000135 # necessary to disable liveness probe when setting breakpoints
136 # in debugger so K8s doesn't restart unresponsive container
137 enabled: true
138
139readiness:
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +0200140 initialDelaySeconds: 1
141 periodSeconds: 10
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +0100142 timeoutSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000143 successThreshold: 1
144 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +0000145
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +0200146startup:
147 initialDelaySeconds: 10
148 periodSeconds: 10
149 timeoutSeconds: 10
150 successThreshold: 1
151 failureThreshold: 90
152
prpatelafedf2c2018-09-07 15:28:38 +0000153service:
prpatelafedf2c2018-09-07 15:28:38 +0000154 name: cassandra
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100155 headless:
156 suffix: ""
157 annotations:
158 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
159 publishNotReadyAddresses: true
160 headlessPorts:
161 - name: tcp-intra
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000162 port: 7000
163 - name: tls
164 port: 7001
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100165 - name: tcp-jmx
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000166 port: 7199
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100167 - name: tcp-cql
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000168 port: 9042
shrek2000f336f6d2020-02-25 16:11:26 +0200169 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100170 - name: tcp-thrift
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000171 port: 9160
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100172 - name: tcp-agent
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000173 port: 61621
prpatelafedf2c2018-09-07 15:28:38 +0000174
Andreas Geissler904b8912022-07-13 11:51:58 +0200175podAnnotations:
176 # sidecar.istio.io/inject: "false"
Andreas Geissler1eeb37b2024-04-09 13:58:38 +0200177 traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001,7199,50051"
Andreas Geissler904b8912022-07-13 11:51:58 +0200178 traffic.sidecar.istio.io/includeInboundPorts: '*'
Andreas Geissler1eeb37b2024-04-09 13:58:38 +0200179 traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001,7199,50051"
Andreas Geisslerbc550dc2023-06-26 17:09:35 +0200180
prpatelafedf2c2018-09-07 15:28:38 +0000181podManagementPolicy: OrderedReady
182updateStrategy:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000183 type: RollingUpdate
prpatelafedf2c2018-09-07 15:28:38 +0000184
prpatelafedf2c2018-09-07 15:28:38 +0000185persistence:
186 enabled: true
187
188 ## A manually managed Persistent Volume and Claim
189 ## Requires persistence.enabled: true
190 ## If defined, PVC must be created manually before volume will be bound
191 # existingClaim:
192 volumeReclaimPolicy: Retain
193
194 ## database data Persistent Volume Storage Class
195 ## If defined, storageClassName: <storageClass>
196 ## If set to "-", storageClassName: "", which disables dynamic provisioning
197 ## If undefined (the default) or set to null, no storageClassName spec is
198 ## set, choosing the default provisioner. (gp2 on AWS, standard on
199 ## GKE, AWS & OpenStack)
200 ##
201 ## storageClass: "-"
Sylvain Desbureauxb7ed2ee2019-11-29 11:35:13 +0100202 ## Not set as it depends of the backup enabledment or not.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100203 accessMode: ReadWriteOnce
Sylvain Desbureaux13585872021-05-07 08:18:53 +0200204 size: 10Gi
prpatelafedf2c2018-09-07 15:28:38 +0000205 mountPath: /dockerdata-nfs
206 mountSubPath: cassandra
207 storageType: local
Akansha Dua7b6e1982019-09-04 13:36:12 +0000208 backup:
209 mountPath: /dockerdata-nfs/backup
prpatelafedf2c2018-09-07 15:28:38 +0000210
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000211configOverrides: {}
prpatelafedf2c2018-09-07 15:28:38 +0000212
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200213# resources: {}
prpatelafedf2c2018-09-07 15:28:38 +0000214 # We usually recommend not to specify default resources and to leave this as a conscious
215 # choice for the user. This also increases chances charts run on environments with little
216 # resources, such as Minikube. If you do want to specify resources, uncomment the following
217 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
218 #
219 # Example:
220 # Configure resource requests and limits
221 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
222 # Minimum memory for development is 2 CPU cores and 4GB memory
223 # Minimum memory for production is 4 CPU cores and 8GB memory
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200224resources:
225 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100226 cpu: "2"
Andreas Geissler1eeb37b2024-04-09 13:58:38 +0200227 memory: "16Gi"
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200228 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100229 cpu: "0.2"
230 memory: "2.5Gi"
Akansha Dua7b6e1982019-09-04 13:36:12 +0000231backup:
232 enabled: false
233 cron: "00 00 * * *"
234 retentionPeriod: 3
235 dbSize: 1
236 keyspacesToSkip:
237 - name: system_traces
238 - name: system_auth
239 - name: system_distributed
farida azmy661c81a2021-03-09 11:38:20 +0200240
241#Pods Service Account
242serviceAccount:
243 nameOverride: cassandra
244 roles:
245 - nothing
Suresh Charane1a70a12022-01-13 06:56:53 -0500246
247# Cassandra Metrics
248metrics:
249 enabled: false
250 image: bitnami/cassandra-exporter:2.3.4-debian-10-r641
251 pullPolicy: IfNotPresent
252 ports:
253 - name: tcp-metrics
254 port: 8080
255 podAnnotations:
256 prometheus.io/scrape: 'true'
257 prometheus.io/port: '8080'
258 livenessProbe:
259 enabled: true
260 httpGet:
261 path: /metrics
262 port: 8080
263 initialDelaySeconds: 30
264 periodSeconds: 10
265 timeoutSeconds: 5
266 successThreshold: 1
267 failureThreshold: 3
268 readinessProbe:
269 httpGet:
270 path: /metrics
271 port: 8080
272 enabled: true
273 initialDelaySeconds: 5
274 periodSeconds: 10
275 timeoutSeconds: 5
276 successThreshold: 1
277 failureThreshold: 3
278 serviceMonitor:
279 enabled: false
280 targetPort: 8080
281 path: /metrics
282 basicAuth:
283 enabled: false
284 ## Namespace in which Prometheus is running
285 ##
286 # namespace: monitoring
287
288 ## Interval at which metrics should be scraped.
289 #interval: 30s
290
291 ## Timeout after which the scrape is ended
292 # scrapeTimeout: 10s
293
294 ## ServiceMonitor selector labels
295 selector:
296 app.kubernetes.io/name: '{{ include "common.name" . }}'
297 helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
298 app.kubernetes.io/instance: '{{ include "common.release" . }}'
299 app.kubernetes.io/managed-by: '{{ .Release.Service }}'
300
301 ## RelabelConfigs to apply to samples before scraping
302 relabelings: []
303
304 ## MetricRelabelConfigs to apply to samples before ingestion
305 metricRelabelings: []