blob: d0ada59061842ad046db81e5a9505e923253cd04 [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
24 repository: nexus3.onap.org:10001
Sylvain Desbureaux1694e1d2020-08-21 09:58:25 +020025 readinessImage: onap/oom/readiness:3.0.1
prpatelafedf2c2018-09-07 15:28:38 +000026
27# application image
28repository: nexus3.onap.org:10001
shrek2000f336f6d2020-02-25 16:11:26 +020029image: library/cassandra:3.11.4
prpatelafedf2c2018-09-07 15:28:38 +000030pullPolicy: Always
31
32# flag to enable debugging - application support required
33debugEnabled: false
34
prpatelafedf2c2018-09-07 15:28:38 +000035# application configuration
36config:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000037 cluster_domain: cluster.local
prpatelafedf2c2018-09-07 15:28:38 +000038 heap:
Akansha Dua7f145c72019-09-12 12:59:39 +000039 max: 2048M
prpatelafedf2c2018-09-07 15:28:38 +000040 min: 100M
41 jvmOpts: -Dcassandra.consistent.rangemovement=false
42 clusterName: cassandra
43 dataCenter: Pod
44 rackName: Rack
45 autoBootstrap: true
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000046 # If hostNetwork is true then provide the comma separated list of seeds.
47 #seeds:seed1,seed2
prpatelafedf2c2018-09-07 15:28:38 +000048
49# default number of instances
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000050replicaCount: 3
51
52hostNetwork: false
prpatelafedf2c2018-09-07 15:28:38 +000053
54nodeSelector: {}
55
56affinity: {}
57
58# probe configuration parameters
59liveness:
60 initialDelaySeconds: 60
61 periodSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000062 timeoutSeconds: 3
63 successThreshold: 1
64 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +000065 # necessary to disable liveness probe when setting breakpoints
66 # in debugger so K8s doesn't restart unresponsive container
67 enabled: true
68
69readiness:
Tomasz Golabek33658002019-05-30 08:59:39 +020070 initialDelaySeconds: 120
prpatelafedf2c2018-09-07 15:28:38 +000071 periodSeconds: 10
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000072 timeoutSeconds: 3
73 successThreshold: 1
74 failureThreshold: 3
prpatelafedf2c2018-09-07 15:28:38 +000075
76service:
prpatelafedf2c2018-09-07 15:28:38 +000077 name: cassandra
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010078 headless:
79 suffix: ""
80 annotations:
81 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
82 publishNotReadyAddresses: true
83 headlessPorts:
84 - name: tcp-intra
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000085 port: 7000
86 - name: tls
87 port: 7001
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010088 - name: tcp-jmx
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000089 port: 7199
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010090 - name: tcp-cql
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000091 port: 9042
shrek2000f336f6d2020-02-25 16:11:26 +020092 ## thrift protocol is deprecated . Should be removed. Being left until all project removes it.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010093 - name: tcp-thrift
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000094 port: 9160
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010095 - name: tcp-agent
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +000096 port: 61621
prpatelafedf2c2018-09-07 15:28:38 +000097
Sylvain Desbureaux60c74802019-12-12 14:35:01 +010098podAnnotations: {}
prpatelafedf2c2018-09-07 15:28:38 +000099podManagementPolicy: OrderedReady
100updateStrategy:
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000101 type: RollingUpdate
prpatelafedf2c2018-09-07 15:28:38 +0000102
103ingress:
104 enabled: false
105
106persistence:
107 enabled: true
108
109 ## A manually managed Persistent Volume and Claim
110 ## Requires persistence.enabled: true
111 ## If defined, PVC must be created manually before volume will be bound
112 # existingClaim:
113 volumeReclaimPolicy: Retain
114
115 ## database data Persistent Volume Storage Class
116 ## If defined, storageClassName: <storageClass>
117 ## If set to "-", storageClassName: "", which disables dynamic provisioning
118 ## If undefined (the default) or set to null, no storageClassName spec is
119 ## set, choosing the default provisioner. (gp2 on AWS, standard on
120 ## GKE, AWS & OpenStack)
121 ##
122 ## storageClass: "-"
Sylvain Desbureauxb7ed2ee2019-11-29 11:35:13 +0100123 ## Not set as it depends of the backup enabledment or not.
Sylvain Desbureaux60c74802019-12-12 14:35:01 +0100124 accessMode: ReadWriteOnce
prpatelafedf2c2018-09-07 15:28:38 +0000125 size: 2Gi
126 mountPath: /dockerdata-nfs
127 mountSubPath: cassandra
128 storageType: local
Akansha Dua7b6e1982019-09-04 13:36:12 +0000129 backup:
130 mountPath: /dockerdata-nfs/backup
prpatelafedf2c2018-09-07 15:28:38 +0000131
Mahendra Raghuwanshif59d9252019-02-20 06:54:46 +0000132configOverrides: {}
prpatelafedf2c2018-09-07 15:28:38 +0000133
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200134# resources: {}
prpatelafedf2c2018-09-07 15:28:38 +0000135 # We usually recommend not to specify default resources and to leave this as a conscious
136 # choice for the user. This also increases chances charts run on environments with little
137 # resources, such as Minikube. If you do want to specify resources, uncomment the following
138 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
139 #
140 # Example:
141 # Configure resource requests and limits
142 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
143 # Minimum memory for development is 2 CPU cores and 4GB memory
144 # Minimum memory for production is 4 CPU cores and 8GB memory
Sylvain Desbureaux77c848a2020-09-23 14:21:30 +0200145resources:
146 limits:
147 cpu: 0.8
148 memory: 4Gi
149 requests:
150 cpu: 0.2
151 memory: 2.5Gi
Akansha Dua7b6e1982019-09-04 13:36:12 +0000152backup:
153 enabled: false
154 cron: "00 00 * * *"
155 retentionPeriod: 3
156 dbSize: 1
157 keyspacesToSkip:
158 - name: system_traces
159 - name: system_auth
160 - name: system_distributed