blob: 1d699939568433560fc15687eb075b0f79ac5d33 [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:
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +020057 initialDelaySeconds: 1
58 periodSeconds: 10
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +010059 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:
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +020067 initialDelaySeconds: 1
68 periodSeconds: 10
Sylvain Desbureaux276c3d92021-02-22 16:23:04 +010069 timeoutSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000070 successThreshold: 1
71 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +000072
Sylvain Desbureauxe7616c32021-05-05 10:47:58 +020073startup:
74 initialDelaySeconds: 10
75 periodSeconds: 10
76 timeoutSeconds: 10
77 successThreshold: 1
78 failureThreshold: 90
79
prpatelafedf2c2018-09-07 15:28:38 +000080service:
prpatelafedf2c2018-09-07 15:28:38 +000081 name: cassandra
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010082 headless:
83 suffix: ""
84 annotations:
85 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
86 publishNotReadyAddresses: true
87 headlessPorts:
88 - name: tcp-intra
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000089 port: 7000
90 - name: tls
91 port: 7001
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010092 - name: tcp-jmx
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000093 port: 7199
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010094 - name: tcp-cql
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000095 port: 9042
shrek2000f336f6d2020-02-25 16:11:26 +020096 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010097 - name: tcp-thrift
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000098 port: 9160
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010099 - name: tcp-agent
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000100 port: 61621
prpatelafedf2c2018-09-07 15:28:38 +0000101
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100102podAnnotations: {}
prpatelafedf2c2018-09-07 15:28:38 +0000103podManagementPolicy: OrderedReady
104updateStrategy:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000105 type: RollingUpdate
prpatelafedf2c2018-09-07 15:28:38 +0000106
107ingress:
108 enabled: false
109
110persistence:
111 enabled: true
112
113 ## A manually managed Persistent Volume and Claim
114 ## Requires persistence.enabled: true
115 ## If defined, PVC must be created manually before volume will be bound
116 # existingClaim:
117 volumeReclaimPolicy: Retain
118
119 ## database data Persistent Volume Storage Class
120 ## If defined, storageClassName: <storageClass>
121 ## If set to "-", storageClassName: "", which disables dynamic provisioning
122 ## If undefined (the default) or set to null, no storageClassName spec is
123 ## set, choosing the default provisioner. (gp2 on AWS, standard on
124 ## GKE, AWS & OpenStack)
125 ##
126 ## storageClass: "-"
Sylvain Desbureauxb7ed2ee2019-11-29 11:35:13 +0100127 ## Not set as it depends of the backup enabledment or not.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100128 accessMode: ReadWriteOnce
Sylvain Desbureaux13585872021-05-07 08:18:53 +0200129 size: 10Gi
prpatelafedf2c2018-09-07 15:28:38 +0000130 mountPath: /dockerdata-nfs
131 mountSubPath: cassandra
132 storageType: local
Akansha Dua7b6e1982019-09-04 13:36:12 +0000133 backup:
134 mountPath: /dockerdata-nfs/backup
prpatelafedf2c2018-09-07 15:28:38 +0000135
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000136configOverrides: {}
prpatelafedf2c2018-09-07 15:28:38 +0000137
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200138# resources: {}
prpatelafedf2c2018-09-07 15:28:38 +0000139 # We usually recommend not to specify default resources and to leave this as a conscious
140 # choice for the user. This also increases chances charts run on environments with little
141 # resources, such as Minikube. If you do want to specify resources, uncomment the following
142 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
143 #
144 # Example:
145 # Configure resource requests and limits
146 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
147 # Minimum memory for development is 2 CPU cores and 4GB memory
148 # Minimum memory for production is 4 CPU cores and 8GB memory
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200149resources:
150 limits:
151 cpu: 0.8
152 memory: 4Gi
153 requests:
154 cpu: 0.2
155 memory: 2.5Gi
Akansha Dua7b6e1982019-09-04 13:36:12 +0000156backup:
157 enabled: false
158 cron: "00 00 * * *"
159 retentionPeriod: 3
160 dbSize: 1
161 keyspacesToSkip:
162 - name: system_traces
163 - name: system_auth
164 - name: system_distributed
farida azmy661c81a2021-03-09 11:38:20 +0200165
166#Pods Service Account
167serviceAccount:
168 nameOverride: cassandra
169 roles:
170 - nothing