blob: c3d22cedc04e9044e647d79a231bdd06f71a13a1 [file] [log] [blame]
prpatelafedf2c2018-09-07 15:28:38 +00001# Copyright © 2018 Amdocs, Bell Canada, AT&T
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.
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
25# application image
Sylvain Desbureaux7743d8b2020-11-19 16:45:23 +010026image: cassandra:3.11.4
prpatelafedf2c2018-09-07 15:28:38 +000027pullPolicy: Always
28
29# flag to enable debugging - application support required
30debugEnabled: false
31
prpatelafedf2c2018-09-07 15:28:38 +000032# application configuration
33config:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000034 cluster_domain: cluster.local
prpatelafedf2c2018-09-07 15:28:38 +000035 heap:
Akansha Dua7f145c72019-09-12 12:59:39 +000036 max: 2048M
prpatelafedf2c2018-09-07 15:28:38 +000037 min: 100M
38 jvmOpts: -Dcassandra.consistent.rangemovement=false
39 clusterName: cassandra
40 dataCenter: Pod
41 rackName: Rack
42 autoBootstrap: true
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000043 # If hostNetwork is true then provide the comma separated list of seeds.
44 #seeds:seed1,seed2
prpatelafedf2c2018-09-07 15:28:38 +000045
46# default number of instances
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000047replicaCount: 3
48
49hostNetwork: false
prpatelafedf2c2018-09-07 15:28:38 +000050
51nodeSelector: {}
52
53affinity: {}
54
55# probe configuration parameters
56liveness:
57 initialDelaySeconds: 60
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +010058 periodSeconds: 20
59 timeoutSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000060 successThreshold: 1
61 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +000062 # necessary to disable liveness probe when setting breakpoints
63 # in debugger so K8s doesn't restart unresponsive container
64 enabled: true
65
66readiness:
Tomasz Golabek33658002019-05-30 08:59:39 +020067 initialDelaySeconds: 120
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +010068 periodSeconds: 20
69 timeoutSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000070 successThreshold: 1
71 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +000072
73service:
prpatelafedf2c2018-09-07 15:28:38 +000074 name: cassandra
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010075 headless:
76 suffix: ""
77 annotations:
78 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
79 publishNotReadyAddresses: true
80 headlessPorts:
81 - name: tcp-intra
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000082 port: 7000
83 - name: tls
84 port: 7001
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010085 - name: tcp-jmx
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000086 port: 7199
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010087 - name: tcp-cql
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000088 port: 9042
shrek2000f336f6d2020-02-25 16:11:26 +020089 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010090 - name: tcp-thrift
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000091 port: 9160
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010092 - name: tcp-agent
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000093 port: 61621
prpatelafedf2c2018-09-07 15:28:38 +000094
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010095podAnnotations: {}
prpatelafedf2c2018-09-07 15:28:38 +000096podManagementPolicy: OrderedReady
97updateStrategy:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000098 type: RollingUpdate
prpatelafedf2c2018-09-07 15:28:38 +000099
100ingress:
101 enabled: false
102
103persistence:
104 enabled: true
105
106 ## A manually managed Persistent Volume and Claim
107 ## Requires persistence.enabled: true
108 ## If defined, PVC must be created manually before volume will be bound
109 # existingClaim:
110 volumeReclaimPolicy: Retain
111
112 ## database data Persistent Volume Storage Class
113 ## If defined, storageClassName: <storageClass>
114 ## If set to "-", storageClassName: "", which disables dynamic provisioning
115 ## If undefined (the default) or set to null, no storageClassName spec is
116 ## set, choosing the default provisioner. (gp2 on AWS, standard on
117 ## GKE, AWS & OpenStack)
118 ##
119 ## storageClass: "-"
Sylvain Desbureauxb7ed2ee2019-11-29 11:35:13 +0100120 ## Not set as it depends of the backup enabledment or not.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100121 accessMode: ReadWriteOnce
prpatelafedf2c2018-09-07 15:28:38 +0000122 size: 2Gi
123 mountPath: /dockerdata-nfs
124 mountSubPath: cassandra
125 storageType: local
Akansha Dua7b6e1982019-09-04 13:36:12 +0000126 backup:
127 mountPath: /dockerdata-nfs/backup
prpatelafedf2c2018-09-07 15:28:38 +0000128
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000129configOverrides: {}
prpatelafedf2c2018-09-07 15:28:38 +0000130
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200131# resources: {}
prpatelafedf2c2018-09-07 15:28:38 +0000132 # We usually recommend not to specify default resources and to leave this as a conscious
133 # choice for the user. This also increases chances charts run on environments with little
134 # resources, such as Minikube. If you do want to specify resources, uncomment the following
135 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
136 #
137 # Example:
138 # Configure resource requests and limits
139 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
140 # Minimum memory for development is 2 CPU cores and 4GB memory
141 # Minimum memory for production is 4 CPU cores and 8GB memory
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200142resources:
143 limits:
144 cpu: 0.8
145 memory: 4Gi
146 requests:
147 cpu: 0.2
148 memory: 2.5Gi
Akansha Dua7b6e1982019-09-04 13:36:12 +0000149backup:
150 enabled: false
151 cron: "00 00 * * *"
152 retentionPeriod: 3
153 dbSize: 1
154 keyspacesToSkip:
155 - name: system_traces
156 - name: system_auth
157 - name: system_distributed