Suresh Charan | e1a70a1 | 2022-01-13 06:56:53 -0500 | [diff] [blame] | 1 | # Copyright © 2022 Amdocs, Bell Canada, AT&T, Bitnami |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 2 | # |
| 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. |
| 18 | global: # global defaults |
| 19 | nodePortPrefix: 302 |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 20 | persistence: |
| 21 | mountPath: /dockerdata-nfs |
| 22 | backup: |
| 23 | mountPath: /dockerdata-nfs/backup |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 24 | 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 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 30 | |
dasarathi528024 | 65e8f78 | 2023-05-03 09:51:20 +0000 | [diff] [blame] | 31 | k8ssandraOperator: |
Andreas Geissler | c4851c8 | 2024-02-23 09:06:17 +0100 | [diff] [blame] | 32 | cassandraVersion: 4.1.3 |
dasarathi528024 | 65e8f78 | 2023-05-03 09:51:20 +0000 | [diff] [blame] | 33 | persistence: |
Andreas Geissler | 7e14d24 | 2023-07-17 17:25:07 +0200 | [diff] [blame] | 34 | #storageClassName: default |
dasarathi528024 | 65e8f78 | 2023-05-03 09:51:20 +0000 | [diff] [blame] | 35 | 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 Geissler | 0d6bdb8 | 2024-08-21 10:06:35 +0200 | [diff] [blame^] | 43 | read_request_timeout: 15000ms |
| 44 | write_request_timeout: 15000ms |
Andreas Geissler | c4851c8 | 2024-02-23 09:06:17 +0100 | [diff] [blame] | 45 | counter_write_request_timeout: 15000ms |
Andreas Geissler | 0d6bdb8 | 2024-08-21 10:06:35 +0200 | [diff] [blame^] | 46 | 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 |
dasarathi528024 | 65e8f78 | 2023-05-03 09:51:20 +0000 | [diff] [blame] | 53 | jvmOptions: |
Andreas Geissler | 891eeb7 | 2023-10-12 13:10:53 +0200 | [diff] [blame] | 54 | heap_initial_size: 512M |
Andreas Geissler | 0d6bdb8 | 2024-08-21 10:06:35 +0200 | [diff] [blame^] | 55 | heap_max_size: 4096M |
dasarathi528024 | 65e8f78 | 2023-05-03 09:51:20 +0000 | [diff] [blame] | 56 | hostNetwork: false |
| 57 | datacenters: |
| 58 | - name: dc1 |
| 59 | size: 3 |
Andreas Geissler | 0d6bdb8 | 2024-08-21 10:06:35 +0200 | [diff] [blame^] | 60 | resources: |
| 61 | requests: |
| 62 | cpu: 2 |
| 63 | memory: 8Gi |
| 64 | limits: |
| 65 | cpu: 8 |
| 66 | memory: 8Gi |
Andreas Geissler | b053025 | 2023-11-10 11:28:49 +0100 | [diff] [blame] | 67 | reaper: |
| 68 | enabled: true |
dasarathi528024 | 65e8f78 | 2023-05-03 09:51:20 +0000 | [diff] [blame] | 69 | stargate: |
Andreas Geissler | c4851c8 | 2024-02-23 09:06:17 +0100 | [diff] [blame] | 70 | enabled: false |
| 71 | tag: v1.0.77 |
dasarathi528024 | 65e8f78 | 2023-05-03 09:51:20 +0000 | [diff] [blame] | 72 | size: 1 |
| 73 | jvmOptions: |
| 74 | heapSize: 384Mi |
| 75 | |
| 76 | ################################################################# |
| 77 | # Secrets metaconfig |
| 78 | # used to store the default superuser for k8ssandra-operator |
| 79 | ################################################################# |
| 80 | secrets: |
| 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 | |
| 90 | ingress: |
| 91 | enabled: false |
| 92 | service: |
| 93 | - baseaddr: "reaper-dc1" |
| 94 | path: "/webui" |
| 95 | name: "cassandra-dc1-reaper-service" |
| 96 | port: 8080 |
| 97 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 98 | # application image |
Sylvain Desbureaux | 7743d8b | 2020-11-19 16:45:23 +0100 | [diff] [blame] | 99 | image: cassandra:3.11.4 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 100 | pullPolicy: Always |
| 101 | |
| 102 | # flag to enable debugging - application support required |
| 103 | debugEnabled: false |
| 104 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 105 | # application configuration |
| 106 | config: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 107 | cluster_domain: cluster.local |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 108 | heap: |
Michal Jagiello | 9a3395b | 2022-06-07 08:38:50 +0000 | [diff] [blame] | 109 | max: 4096M |
| 110 | min: 200M |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 111 | jvmOpts: -Dcassandra.consistent.rangemovement=false |
| 112 | clusterName: cassandra |
| 113 | dataCenter: Pod |
| 114 | rackName: Rack |
| 115 | autoBootstrap: true |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 116 | # If hostNetwork is true then provide the comma separated list of seeds. |
| 117 | #seeds:seed1,seed2 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 118 | |
| 119 | # default number of instances |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 120 | replicaCount: 3 |
| 121 | |
| 122 | hostNetwork: false |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 123 | |
| 124 | nodeSelector: {} |
| 125 | |
| 126 | affinity: {} |
| 127 | |
| 128 | # probe configuration parameters |
| 129 | liveness: |
Sylvain Desbureaux | e7616c3 | 2021-05-05 10:47:58 +0200 | [diff] [blame] | 130 | initialDelaySeconds: 1 |
| 131 | periodSeconds: 10 |
Sylvain Desbureaux | 276c3d9 | 2021-02-22 16:23:04 +0100 | [diff] [blame] | 132 | timeoutSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 133 | successThreshold: 1 |
| 134 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 135 | # necessary to disable liveness probe when setting breakpoints |
| 136 | # in debugger so K8s doesn't restart unresponsive container |
| 137 | enabled: true |
| 138 | |
| 139 | readiness: |
Sylvain Desbureaux | e7616c3 | 2021-05-05 10:47:58 +0200 | [diff] [blame] | 140 | initialDelaySeconds: 1 |
| 141 | periodSeconds: 10 |
Sylvain Desbureaux | 276c3d9 | 2021-02-22 16:23:04 +0100 | [diff] [blame] | 142 | timeoutSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 143 | successThreshold: 1 |
| 144 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 145 | |
Sylvain Desbureaux | e7616c3 | 2021-05-05 10:47:58 +0200 | [diff] [blame] | 146 | startup: |
| 147 | initialDelaySeconds: 10 |
| 148 | periodSeconds: 10 |
| 149 | timeoutSeconds: 10 |
| 150 | successThreshold: 1 |
| 151 | failureThreshold: 90 |
| 152 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 153 | service: |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 154 | name: cassandra |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 155 | headless: |
| 156 | suffix: "" |
| 157 | annotations: |
| 158 | service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" |
| 159 | publishNotReadyAddresses: true |
| 160 | headlessPorts: |
| 161 | - name: tcp-intra |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 162 | port: 7000 |
| 163 | - name: tls |
| 164 | port: 7001 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 165 | - name: tcp-jmx |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 166 | port: 7199 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 167 | - name: tcp-cql |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 168 | port: 9042 |
shrek2000 | f336f6d | 2020-02-25 16:11:26 +0200 | [diff] [blame] | 169 | ## thrift protocol is deprecated . Should be removed. Being left until all project removes it. |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 170 | - name: tcp-thrift |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 171 | port: 9160 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 172 | - name: tcp-agent |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 173 | port: 61621 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 174 | |
Andreas Geissler | 904b891 | 2022-07-13 11:51:58 +0200 | [diff] [blame] | 175 | podAnnotations: |
| 176 | # sidecar.istio.io/inject: "false" |
Andreas Geissler | 1eeb37b | 2024-04-09 13:58:38 +0200 | [diff] [blame] | 177 | traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001,7199,50051" |
Andreas Geissler | 904b891 | 2022-07-13 11:51:58 +0200 | [diff] [blame] | 178 | traffic.sidecar.istio.io/includeInboundPorts: '*' |
Andreas Geissler | 1eeb37b | 2024-04-09 13:58:38 +0200 | [diff] [blame] | 179 | traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001,7199,50051" |
Andreas Geissler | bc550dc | 2023-06-26 17:09:35 +0200 | [diff] [blame] | 180 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 181 | podManagementPolicy: OrderedReady |
| 182 | updateStrategy: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 183 | type: RollingUpdate |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 184 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 185 | persistence: |
| 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 Desbureaux | b7ed2ee | 2019-11-29 11:35:13 +0100 | [diff] [blame] | 202 | ## Not set as it depends of the backup enabledment or not. |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 203 | accessMode: ReadWriteOnce |
Sylvain Desbureaux | 1358587 | 2021-05-07 08:18:53 +0200 | [diff] [blame] | 204 | size: 10Gi |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 205 | mountPath: /dockerdata-nfs |
| 206 | mountSubPath: cassandra |
| 207 | storageType: local |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 208 | backup: |
| 209 | mountPath: /dockerdata-nfs/backup |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 210 | |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 211 | configOverrides: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 212 | |
Sylvain Desbureaux | 77c848a | 2020-09-23 14:21:30 +0200 | [diff] [blame] | 213 | # resources: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 214 | # 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 Desbureaux | 77c848a | 2020-09-23 14:21:30 +0200 | [diff] [blame] | 224 | resources: |
| 225 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 226 | cpu: "2" |
Andreas Geissler | 1eeb37b | 2024-04-09 13:58:38 +0200 | [diff] [blame] | 227 | memory: "16Gi" |
Sylvain Desbureaux | 77c848a | 2020-09-23 14:21:30 +0200 | [diff] [blame] | 228 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 229 | cpu: "0.2" |
| 230 | memory: "2.5Gi" |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 231 | backup: |
| 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 azmy | 661c81a | 2021-03-09 11:38:20 +0200 | [diff] [blame] | 240 | |
| 241 | #Pods Service Account |
| 242 | serviceAccount: |
| 243 | nameOverride: cassandra |
| 244 | roles: |
| 245 | - nothing |
Suresh Charan | e1a70a1 | 2022-01-13 06:56:53 -0500 | [diff] [blame] | 246 | |
| 247 | # Cassandra Metrics |
| 248 | metrics: |
| 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: [] |