blob: 13137a182bd6f28b091751ad1ce904add312ada8 [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
prpatelafedf2c2018-09-07 15:28:38 +000024
dasarathi52802465e8f782023-05-03 09:51:20 +000025k8ssandraOperator:
26 enabled: false
27 cassandraVersion: 4.0.1
28 persistence:
29 storageClassName: default
30 size: 10Gi
31 config:
32 clusterName: cassandra
33 secretName: &secretName cassandra-default-user
34 superuserName: &superusername cassandra
35 superuserPassword: &superuserpassword cassandra
36 casOptions:
37 authorizer: AllowAllAuthorizer
38 jvmOptions:
39 heapSize: 512M
40 hostNetwork: false
41 datacenters:
42 - name: dc1
43 size: 3
44 stargate:
45 tag: v1.0.76
46 size: 1
47 jvmOptions:
48 heapSize: 384Mi
49
50#################################################################
51# Secrets metaconfig
52# used to store the default superuser for k8ssandra-operator
53#################################################################
54secrets:
55 - uid: *secretName
56 type: genericKV
57 externalSecret: '{{ tpl (default "" .Values.k8ssandraOperator.config.userCredentialsExternalSecret) . }}'
58 envs:
59 - name: username
60 value: *superusername
61 - name: password
62 value: *superuserpassword
63
64ingress:
65 enabled: false
66 service:
67 - baseaddr: "reaper-dc1"
68 path: "/webui"
69 name: "cassandra-dc1-reaper-service"
70 port: 8080
71
prpatelafedf2c2018-09-07 15:28:38 +000072# application image
Sylvain Desbureaux7743d8b2020-11-19 16:45:23 +010073image: cassandra:3.11.4
prpatelafedf2c2018-09-07 15:28:38 +000074pullPolicy: Always
75
76# flag to enable debugging - application support required
77debugEnabled: false
78
prpatelafedf2c2018-09-07 15:28:38 +000079# application configuration
80config:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000081 cluster_domain: cluster.local
prpatelafedf2c2018-09-07 15:28:38 +000082 heap:
Michal Jagiello9a3395b2022-06-07 08:38:50 +000083 max: 4096M
84 min: 200M
prpatelafedf2c2018-09-07 15:28:38 +000085 jvmOpts: -Dcassandra.consistent.rangemovement=false
86 clusterName: cassandra
87 dataCenter: Pod
88 rackName: Rack
89 autoBootstrap: true
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000090 # If hostNetwork is true then provide the comma separated list of seeds.
91 #seeds:seed1,seed2
prpatelafedf2c2018-09-07 15:28:38 +000092
93# default number of instances
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000094replicaCount: 3
95
96hostNetwork: false
prpatelafedf2c2018-09-07 15:28:38 +000097
98nodeSelector: {}
99
100affinity: {}
101
102# probe configuration parameters
103liveness:
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +0200104 initialDelaySeconds: 1
105 periodSeconds: 10
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +0100106 timeoutSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000107 successThreshold: 1
108 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +0000109 # necessary to disable liveness probe when setting breakpoints
110 # in debugger so K8s doesn't restart unresponsive container
111 enabled: true
112
113readiness:
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +0200114 initialDelaySeconds: 1
115 periodSeconds: 10
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +0100116 timeoutSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000117 successThreshold: 1
118 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +0000119
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +0200120startup:
121 initialDelaySeconds: 10
122 periodSeconds: 10
123 timeoutSeconds: 10
124 successThreshold: 1
125 failureThreshold: 90
126
prpatelafedf2c2018-09-07 15:28:38 +0000127service:
prpatelafedf2c2018-09-07 15:28:38 +0000128 name: cassandra
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100129 headless:
130 suffix: ""
131 annotations:
132 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
133 publishNotReadyAddresses: true
134 headlessPorts:
135 - name: tcp-intra
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000136 port: 7000
137 - name: tls
138 port: 7001
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100139 - name: tcp-jmx
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000140 port: 7199
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100141 - name: tcp-cql
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000142 port: 9042
shrek2000f336f6d2020-02-25 16:11:26 +0200143 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100144 - name: tcp-thrift
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000145 port: 9160
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100146 - name: tcp-agent
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000147 port: 61621
prpatelafedf2c2018-09-07 15:28:38 +0000148
Andreas Geissler904b8912022-07-13 11:51:58 +0200149podAnnotations:
150 # sidecar.istio.io/inject: "false"
151 traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001"
152 traffic.sidecar.istio.io/includeInboundPorts: '*'
153 traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001"
prpatelafedf2c2018-09-07 15:28:38 +0000154podManagementPolicy: OrderedReady
155updateStrategy:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000156 type: RollingUpdate
prpatelafedf2c2018-09-07 15:28:38 +0000157
prpatelafedf2c2018-09-07 15:28:38 +0000158persistence:
159 enabled: true
160
161 ## A manually managed Persistent Volume and Claim
162 ## Requires persistence.enabled: true
163 ## If defined, PVC must be created manually before volume will be bound
164 # existingClaim:
165 volumeReclaimPolicy: Retain
166
167 ## database data Persistent Volume Storage Class
168 ## If defined, storageClassName: <storageClass>
169 ## If set to "-", storageClassName: "", which disables dynamic provisioning
170 ## If undefined (the default) or set to null, no storageClassName spec is
171 ## set, choosing the default provisioner. (gp2 on AWS, standard on
172 ## GKE, AWS & OpenStack)
173 ##
174 ## storageClass: "-"
Sylvain Desbureauxb7ed2ee2019-11-29 11:35:13 +0100175 ## Not set as it depends of the backup enabledment or not.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100176 accessMode: ReadWriteOnce
Sylvain Desbureaux13585872021-05-07 08:18:53 +0200177 size: 10Gi
prpatelafedf2c2018-09-07 15:28:38 +0000178 mountPath: /dockerdata-nfs
179 mountSubPath: cassandra
180 storageType: local
Akansha Dua7b6e1982019-09-04 13:36:12 +0000181 backup:
182 mountPath: /dockerdata-nfs/backup
prpatelafedf2c2018-09-07 15:28:38 +0000183
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000184configOverrides: {}
prpatelafedf2c2018-09-07 15:28:38 +0000185
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200186# resources: {}
prpatelafedf2c2018-09-07 15:28:38 +0000187 # We usually recommend not to specify default resources and to leave this as a conscious
188 # choice for the user. This also increases chances charts run on environments with little
189 # resources, such as Minikube. If you do want to specify resources, uncomment the following
190 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
191 #
192 # Example:
193 # Configure resource requests and limits
194 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
195 # Minimum memory for development is 2 CPU cores and 4GB memory
196 # Minimum memory for production is 4 CPU cores and 8GB memory
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200197resources:
198 limits:
Michal Jagiello9a3395b2022-06-07 08:38:50 +0000199 cpu: 2
200 memory: 8Gi
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200201 requests:
202 cpu: 0.2
203 memory: 2.5Gi
Akansha Dua7b6e1982019-09-04 13:36:12 +0000204backup:
205 enabled: false
206 cron: "00 00 * * *"
207 retentionPeriod: 3
208 dbSize: 1
209 keyspacesToSkip:
210 - name: system_traces
211 - name: system_auth
212 - name: system_distributed
farida azmy661c81a2021-03-09 11:38:20 +0200213
214#Pods Service Account
215serviceAccount:
216 nameOverride: cassandra
217 roles:
218 - nothing
Suresh Charane1a70a12022-01-13 06:56:53 -0500219
220# Cassandra Metrics
221metrics:
222 enabled: false
223 image: bitnami/cassandra-exporter:2.3.4-debian-10-r641
224 pullPolicy: IfNotPresent
225 ports:
226 - name: tcp-metrics
227 port: 8080
228 podAnnotations:
229 prometheus.io/scrape: 'true'
230 prometheus.io/port: '8080'
231 livenessProbe:
232 enabled: true
233 httpGet:
234 path: /metrics
235 port: 8080
236 initialDelaySeconds: 30
237 periodSeconds: 10
238 timeoutSeconds: 5
239 successThreshold: 1
240 failureThreshold: 3
241 readinessProbe:
242 httpGet:
243 path: /metrics
244 port: 8080
245 enabled: true
246 initialDelaySeconds: 5
247 periodSeconds: 10
248 timeoutSeconds: 5
249 successThreshold: 1
250 failureThreshold: 3
251 serviceMonitor:
252 enabled: false
253 targetPort: 8080
254 path: /metrics
255 basicAuth:
256 enabled: false
257 ## Namespace in which Prometheus is running
258 ##
259 # namespace: monitoring
260
261 ## Interval at which metrics should be scraped.
262 #interval: 30s
263
264 ## Timeout after which the scrape is ended
265 # scrapeTimeout: 10s
266
267 ## ServiceMonitor selector labels
268 selector:
269 app.kubernetes.io/name: '{{ include "common.name" . }}'
270 helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
271 app.kubernetes.io/instance: '{{ include "common.release" . }}'
272 app.kubernetes.io/managed-by: '{{ .Release.Service }}'
273
274 ## RelabelConfigs to apply to samples before scraping
275 relabelings: []
276
277 ## MetricRelabelConfigs to apply to samples before ingestion
278 metricRelabelings: []