Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / common / cassandra / values.yaml
1 # Copyright © 2022 Amdocs, Bell Canada, AT&T, Bitnami
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
20   persistence:
21     mountPath: /dockerdata-nfs
22     backup:
23       mountPath: /dockerdata-nfs/backup
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
30
31 k8ssandraOperator:
32   cassandraVersion: 4.1.3
33   persistence:
34     #storageClassName: default
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
43       read_request_timeout: 10000ms
44       write_request_timeout: 10000ms
45       counter_write_request_timeout: 15000ms
46     jvmOptions:
47       heap_initial_size: 512M
48       heap_max_size: 8192M
49     hostNetwork: false
50   datacenters:
51     - name: dc1
52       size: 3
53   reaper:
54     enabled: true
55   stargate:
56     enabled: false
57     tag: v1.0.77
58     size: 1
59     jvmOptions:
60       heapSize: 384Mi
61
62 #################################################################
63 # Secrets metaconfig
64 # used to store the default superuser for k8ssandra-operator
65 #################################################################
66 secrets:
67   - uid: *secretName
68     type: genericKV
69     externalSecret: '{{ tpl (default "" .Values.k8ssandraOperator.config.userCredentialsExternalSecret) . }}'
70     envs:
71       - name: username
72         value: *superusername
73       - name: password
74         value: *superuserpassword
75
76 ingress:
77   enabled: false
78   service:
79     - baseaddr: "reaper-dc1"
80       path: "/webui"
81       name: "cassandra-dc1-reaper-service"
82       port: 8080
83
84 # application image
85 image: cassandra:3.11.4
86 pullPolicy: Always
87
88 # flag to enable debugging - application support required
89 debugEnabled: false
90
91 # application configuration
92 config:
93   cluster_domain: cluster.local
94   heap:
95     max: 4096M
96     min: 200M
97   jvmOpts: -Dcassandra.consistent.rangemovement=false
98   clusterName: cassandra
99   dataCenter: Pod
100   rackName: Rack
101   autoBootstrap: true
102   # If hostNetwork is true then provide the comma separated list of seeds.
103   #seeds:seed1,seed2
104
105 # default number of instances
106 replicaCount: 3
107
108 hostNetwork: false
109
110 nodeSelector: {}
111
112 affinity: {}
113
114 # probe configuration parameters
115 liveness:
116   initialDelaySeconds: 1
117   periodSeconds: 10
118   timeoutSeconds: 10
119   successThreshold: 1
120   failureThreshold: 3
121   # necessary to disable liveness probe when setting breakpoints
122   # in debugger so K8s doesn't restart unresponsive container
123   enabled: true
124
125 readiness:
126   initialDelaySeconds: 1
127   periodSeconds: 10
128   timeoutSeconds: 10
129   successThreshold: 1
130   failureThreshold: 3
131
132 startup:
133   initialDelaySeconds: 10
134   periodSeconds: 10
135   timeoutSeconds: 10
136   successThreshold: 1
137   failureThreshold: 90
138
139 service:
140   name: cassandra
141   headless:
142     suffix: ""
143     annotations:
144       service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
145     publishNotReadyAddresses: true
146   headlessPorts:
147   - name: tcp-intra
148     port: 7000
149   - name: tls
150     port: 7001
151   - name: tcp-jmx
152     port: 7199
153   - name: tcp-cql
154     port: 9042
155     ## thrift protocol is  deprecated . Should be removed. Being left until all project removes it.
156   - name: tcp-thrift
157     port: 9160
158   - name: tcp-agent
159     port: 61621
160
161 podAnnotations:
162   #  sidecar.istio.io/inject: "false"
163   traffic.sidecar.istio.io/excludeInboundPorts: "7000,7001,7199,50051"
164   traffic.sidecar.istio.io/includeInboundPorts: '*'
165   traffic.sidecar.istio.io/excludeOutboundPorts: "7000,7001,7199,50051"
166
167 podManagementPolicy: OrderedReady
168 updateStrategy:
169   type: RollingUpdate
170
171 persistence:
172   enabled: true
173
174   ## A manually managed Persistent Volume and Claim
175   ## Requires persistence.enabled: true
176   ## If defined, PVC must be created manually before volume will be bound
177   # existingClaim:
178   volumeReclaimPolicy: Retain
179
180   ## database data Persistent Volume Storage Class
181   ## If defined, storageClassName: <storageClass>
182   ## If set to "-", storageClassName: "", which disables dynamic provisioning
183   ## If undefined (the default) or set to null, no storageClassName spec is
184   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
185   ##   GKE, AWS & OpenStack)
186   ##
187   ## storageClass: "-"
188   ## Not set as it depends of the backup enabledment or not.
189   accessMode: ReadWriteOnce
190   size: 10Gi
191   mountPath: /dockerdata-nfs
192   mountSubPath: cassandra
193   storageType: local
194   backup:
195       mountPath: /dockerdata-nfs/backup
196
197 configOverrides: {}
198
199 # resources: {}
200   # We usually recommend not to specify default resources and to leave this as a conscious
201   # choice for the user. This also increases chances charts run on environments with little
202   # resources, such as Minikube. If you do want to specify resources, uncomment the following
203   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
204   #
205   # Example:
206   # Configure resource requests and limits
207   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
208   # Minimum memory for development is 2 CPU cores and 4GB memory
209   # Minimum memory for production is 4 CPU cores and 8GB memory
210 resources:
211   limits:
212     cpu: "2"
213     memory: "16Gi"
214   requests:
215     cpu: "0.2"
216     memory: "2.5Gi"
217 backup:
218   enabled: false
219   cron: "00 00 * * *"
220   retentionPeriod: 3
221   dbSize: 1
222   keyspacesToSkip:
223   - name: system_traces
224   - name: system_auth
225   - name: system_distributed
226
227 #Pods Service Account
228 serviceAccount:
229   nameOverride: cassandra
230   roles:
231     - nothing
232
233 # Cassandra Metrics
234 metrics:
235   enabled: false
236   image: bitnami/cassandra-exporter:2.3.4-debian-10-r641
237   pullPolicy: IfNotPresent
238   ports:
239   - name: tcp-metrics
240     port: 8080
241   podAnnotations:
242     prometheus.io/scrape: 'true'
243     prometheus.io/port: '8080'
244   livenessProbe:
245     enabled: true
246     httpGet:
247       path: /metrics
248       port: 8080
249     initialDelaySeconds: 30
250     periodSeconds: 10
251     timeoutSeconds: 5
252     successThreshold: 1
253     failureThreshold: 3
254   readinessProbe:
255     httpGet:
256       path: /metrics
257       port: 8080
258     enabled: true
259     initialDelaySeconds: 5
260     periodSeconds: 10
261     timeoutSeconds: 5
262     successThreshold: 1
263     failureThreshold: 3
264   serviceMonitor:
265     enabled: false
266     targetPort: 8080
267     path: /metrics
268     basicAuth:
269       enabled: false
270     ## Namespace in which Prometheus is running
271     ##
272     # namespace: monitoring
273
274     ## Interval at which metrics should be scraped.
275     #interval: 30s
276
277     ## Timeout after which the scrape is ended
278     # scrapeTimeout: 10s
279
280     ## ServiceMonitor selector labels
281     selector:
282       app.kubernetes.io/name: '{{ include "common.name" . }}'
283       helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
284       app.kubernetes.io/instance: '{{ include "common.release" . }}'
285       app.kubernetes.io/managed-by: '{{ .Release.Service }}'
286
287     ## RelabelConfigs to apply to samples before scraping
288     relabelings: []
289
290     ## MetricRelabelConfigs to apply to samples before ingestion
291     metricRelabelings: []