Merge "[DCAEMOD] Uses new tpls for repos / images"
[oom.git] / kubernetes / common / cassandra / values.yaml
1 # 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.
18 global: # global defaults
19   nodePortPrefix: 302
20   persistence:
21     mountPath: /dockerdata-nfs
22     backup:
23       mountPath: /dockerdata-nfs/backup
24
25 # application image
26 image: cassandra:3.11.4
27 pullPolicy: Always
28
29 # flag to enable debugging - application support required
30 debugEnabled: false
31
32 # application configuration
33 config:
34   cluster_domain: cluster.local
35   heap:
36     max: 2048M
37     min: 100M
38   jvmOpts: -Dcassandra.consistent.rangemovement=false
39   clusterName: cassandra
40   dataCenter: Pod
41   rackName: Rack
42   autoBootstrap: true
43   # If hostNetwork is true then provide the comma separated list of seeds.
44   #seeds:seed1,seed2
45
46 # default number of instances
47 replicaCount: 3
48
49 hostNetwork: false
50
51 nodeSelector: {}
52
53 affinity: {}
54
55 # probe configuration parameters
56 liveness:
57   initialDelaySeconds: 60
58   periodSeconds: 10
59   timeoutSeconds: 3
60   successThreshold: 1
61   failureThreshold: 3
62   # necessary to disable liveness probe when setting breakpoints
63   # in debugger so K8s doesn't restart unresponsive container
64   enabled: true
65
66 readiness:
67   initialDelaySeconds: 120
68   periodSeconds: 10
69   timeoutSeconds: 3
70   successThreshold: 1
71   failureThreshold: 3
72
73 service:
74   name: cassandra
75   headless:
76     suffix: ""
77     annotations:
78       service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
79     publishNotReadyAddresses: true
80   headlessPorts:
81   - name: tcp-intra
82     port: 7000
83   - name: tls
84     port: 7001
85   - name: tcp-jmx
86     port: 7199
87   - name: tcp-cql
88     port: 9042
89     ## thrift protocol is  deprecated . Should be removed. Being left until all project removes it.
90   - name: tcp-thrift
91     port: 9160
92   - name: tcp-agent
93     port: 61621
94
95 podAnnotations: {}
96 podManagementPolicy: OrderedReady
97 updateStrategy:
98   type: RollingUpdate
99
100 ingress:
101   enabled: false
102
103 persistence:
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: "-"
120   ## Not set as it depends of the backup enabledment or not.
121   accessMode: ReadWriteOnce
122   size: 2Gi
123   mountPath: /dockerdata-nfs
124   mountSubPath: cassandra
125   storageType: local
126   backup:
127       mountPath: /dockerdata-nfs/backup
128
129 configOverrides: {}
130
131 # resources: {}
132   # 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
142 resources:
143   limits:
144     cpu: 0.8
145     memory: 4Gi
146   requests:
147     cpu: 0.2
148     memory: 2.5Gi
149 backup:
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