blob: b06761a87050c8939450f5b4ce8942814f9f4e62 [file] [log] [blame]
Grzegorz-Lisa9270d92020-11-06 12:37:36 +00001# Copyright (c) 2017 Amdocs, Bell Canada
2# Modifications Copyright (c) 2018 AT&T
Sylvain Desbureaux6e41a2c2021-02-05 21:33:31 +01003# Modifications Copyright (c) 2020 Nokia, Orange
Mandeep Khinda1d123882018-03-27 01:26:59 +00004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Default values for mariadb.
18# This is a YAML-formatted file.
19# Declare variables to be passed into your templates.
20global: # global defaults
21 nodePortPrefix: 302
Mandeep Khinda1d123882018-03-27 01:26:59 +000022 persistence: {}
23
24
25# application image
Grzegorz-Lisa9270d92020-11-06 12:37:36 +000026image: bitnami/cassandra:3.11.9-debian-10-r30
Mandeep Khinda1d123882018-03-27 01:26:59 +000027pullPolicy: Always
28
Sandeep Shah2ffb1ba2020-09-01 21:13:16 -050029#################################################################
30# Secrets metaconfig
31#################################################################
32secrets:
33 - uid: 'db-creds'
34 type: basicAuth
35 externalSecret: '{{ tpl (default "" .Values.config.cassandraExternalSecret) . }}'
36 login: '{{ .Values.config.cassandraUsername }}'
37 password: '{{ .Values.config.cassandraPassword }}'
38
Mandeep Khinda1d123882018-03-27 01:26:59 +000039# application configuration
40config:
41 cassandraUsername: root
42 cassandraPassword: Aa123456
Sandeep Shah2ffb1ba2020-09-01 21:13:16 -050043# cassandraCredsExternalSecret: some secret
st782s76972f72018-05-02 17:27:57 -040044 cassandraJvmOpts: -Xmx2536m -Xms2536m
Mandeep Khinda1d123882018-03-27 01:26:59 +000045
46# default number of instances
47replicaCount: 1
48
49nodeSelector: {}
50
51affinity: {}
52
53# probe configuration parameters
54liveness:
55 initialDelaySeconds: 10
56 periodSeconds: 10
57 # necessary to disable liveness probe when setting breakpoints
58 # in debugger so K8s doesn't restart unresponsive container
59 enabled: true
Grzegorz-Lisa9270d92020-11-06 12:37:36 +000060 successThreshold: 1
61 failureThreshold: 3
Mandeep Khinda1d123882018-03-27 01:26:59 +000062
63readiness:
64 initialDelaySeconds: 10
65 periodSeconds: 10
Grzegorz-Lisa9270d92020-11-06 12:37:36 +000066 successThreshold: 1
67 failureThreshold: 3
Mandeep Khinda1d123882018-03-27 01:26:59 +000068
Roger Maitland28c06452018-04-10 14:43:57 -040069## Persist data to a persitent volume
70persistence:
71 enabled: true
72
73 ## A manually managed Persistent Volume and Claim
74 ## Requires persistence.enabled: true
75 ## If defined, PVC must be created manually before volume will be bound
76 # existingClaim:
77 volumeReclaimPolicy: Retain
78
79 ## database data Persistent Volume Storage Class
80 ## If defined, storageClassName: <storageClass>
81 ## If set to "-", storageClassName: "", which disables dynamic provisioning
82 ## If undefined (the default) or set to null, no storageClassName spec is
83 ## set, choosing the default provisioner. (gp2 on AWS, standard on
84 ## GKE, AWS & OpenStack)
85 ##
86 # storageClass: "-"
Sylvain Desbureauxcce22e92019-09-02 14:18:42 +020087 accessMode: ReadWriteOnce
Roger Maitland28c06452018-04-10 14:43:57 -040088 size: 2Gi
89 mountPath: /dockerdata-nfs
90 mountSubPath: portal/cassandra/data
Mandeep Khinda60d36d42018-09-24 15:15:48 +000091
Mandeep Khinda1d123882018-03-27 01:26:59 +000092service:
93 type: ClusterIP
94 name: portal-cassandra
BorislavG1ffbd992018-04-24 07:56:27 +000095 portName: portal-cassandra
Mandeep Khinda1d123882018-03-27 01:26:59 +000096 externalPort: 9160
97 internalPort: 9160
98 externalPort2: 7000
99 internalPort2: 7000
100 externalPort3: 7001
101 internalPort3: 7001
102 externalPort4: 7199
103 internalPort4: 7199
104 externalPort5: 9042
105 internalPort5: 9042
106
107ingress:
108 enabled: false
109
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000110# Resource Limit flavor -By Default using small
Nishukumar75d48b92018-09-19 12:11:51 +0000111flavor: small
112# Segregation for Different environment (Small and Large)
113resources:
114 small:
115 limits:
Sylvain Desbureaux22b89c72019-10-29 12:00:36 +0100116 cpu: 500m
117 memory: 3.75Gi
Nishukumar75d48b92018-09-19 12:11:51 +0000118 requests:
Sylvain Desbureaux22b89c72019-10-29 12:00:36 +0100119 cpu: 160m
Sylvain Desbureaux6e41a2c2021-02-05 21:33:31 +0100120 memory: 3.1Gi
Nishukumar75d48b92018-09-19 12:11:51 +0000121 large:
122 limits:
123 cpu: 4
124 memory: 10Gi
125 requests:
126 cpu: 2
127 memory: 6Gi
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000128 unlimited: {}
Sylvain Desbureauxc23aa422021-02-15 15:28:19 +0100129
130heap:
131 # Heap size is tightly correlated to RAM limits.
132 # If limit > 8G, Cassandra should define itself the best value.
133 # If not, you must set up it in a coherent way with limits set
134 # Refer to https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/operations/opsTuneJVM.html#Determiningtheheapsize
135 # for more informations.
136 small:
137 max: 3G
138 new: 100M
139 large: {}
140 unlimited: {}