Grzegorz-Lis | a9270d9 | 2020-11-06 12:37:36 +0000 | [diff] [blame] | 1 | # Copyright (c) 2017 Amdocs, Bell Canada |
| 2 | # Modifications Copyright (c) 2018 AT&T |
Sylvain Desbureaux | 6e41a2c | 2021-02-05 21:33:31 +0100 | [diff] [blame] | 3 | # Modifications Copyright (c) 2020 Nokia, Orange |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 4 | # |
| 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. |
| 20 | global: # global defaults |
| 21 | nodePortPrefix: 302 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 22 | persistence: {} |
| 23 | |
| 24 | |
| 25 | # application image |
Grzegorz-Lis | a9270d9 | 2020-11-06 12:37:36 +0000 | [diff] [blame] | 26 | image: bitnami/cassandra:3.11.9-debian-10-r30 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 27 | pullPolicy: Always |
| 28 | |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 29 | ################################################################# |
| 30 | # Secrets metaconfig |
| 31 | ################################################################# |
| 32 | secrets: |
| 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 Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 39 | # application configuration |
| 40 | config: |
| 41 | cassandraUsername: root |
| 42 | cassandraPassword: Aa123456 |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 43 | # cassandraCredsExternalSecret: some secret |
st782s | 76972f7 | 2018-05-02 17:27:57 -0400 | [diff] [blame] | 44 | cassandraJvmOpts: -Xmx2536m -Xms2536m |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 45 | |
| 46 | # default number of instances |
| 47 | replicaCount: 1 |
| 48 | |
| 49 | nodeSelector: {} |
| 50 | |
| 51 | affinity: {} |
| 52 | |
| 53 | # probe configuration parameters |
| 54 | liveness: |
| 55 | initialDelaySeconds: 10 |
Sylvain Desbureaux | 226cbae | 2021-02-24 10:40:15 +0100 | [diff] [blame] | 56 | periodSeconds: 20 |
| 57 | timeoutSeconds: 10 |
| 58 | successThreshold: 1 |
| 59 | failureThreshold: 3 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 60 | # necessary to disable liveness probe when setting breakpoints |
| 61 | # in debugger so K8s doesn't restart unresponsive container |
| 62 | enabled: true |
| 63 | |
| 64 | readiness: |
| 65 | initialDelaySeconds: 10 |
Sylvain Desbureaux | 226cbae | 2021-02-24 10:40:15 +0100 | [diff] [blame] | 66 | periodSeconds: 20 |
| 67 | timeoutSeconds: 10 |
Grzegorz-Lis | a9270d9 | 2020-11-06 12:37:36 +0000 | [diff] [blame] | 68 | successThreshold: 1 |
| 69 | failureThreshold: 3 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 70 | |
Roger Maitland | 28c0645 | 2018-04-10 14:43:57 -0400 | [diff] [blame] | 71 | ## Persist data to a persitent volume |
| 72 | persistence: |
| 73 | enabled: true |
| 74 | |
| 75 | ## A manually managed Persistent Volume and Claim |
| 76 | ## Requires persistence.enabled: true |
| 77 | ## If defined, PVC must be created manually before volume will be bound |
| 78 | # existingClaim: |
| 79 | volumeReclaimPolicy: Retain |
| 80 | |
| 81 | ## database data Persistent Volume Storage Class |
| 82 | ## If defined, storageClassName: <storageClass> |
| 83 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 84 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 85 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 86 | ## GKE, AWS & OpenStack) |
| 87 | ## |
| 88 | # storageClass: "-" |
Sylvain Desbureaux | cce22e9 | 2019-09-02 14:18:42 +0200 | [diff] [blame] | 89 | accessMode: ReadWriteOnce |
Roger Maitland | 28c0645 | 2018-04-10 14:43:57 -0400 | [diff] [blame] | 90 | size: 2Gi |
| 91 | mountPath: /dockerdata-nfs |
| 92 | mountSubPath: portal/cassandra/data |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 93 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 94 | service: |
| 95 | type: ClusterIP |
| 96 | name: portal-cassandra |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 97 | portName: portal-cassandra |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 98 | externalPort: 9160 |
| 99 | internalPort: 9160 |
| 100 | externalPort2: 7000 |
| 101 | internalPort2: 7000 |
| 102 | externalPort3: 7001 |
| 103 | internalPort3: 7001 |
| 104 | externalPort4: 7199 |
| 105 | internalPort4: 7199 |
| 106 | externalPort5: 9042 |
| 107 | internalPort5: 9042 |
| 108 | |
| 109 | ingress: |
| 110 | enabled: false |
| 111 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 112 | # Resource Limit flavor -By Default using small |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 113 | flavor: small |
| 114 | # Segregation for Different environment (Small and Large) |
| 115 | resources: |
| 116 | small: |
| 117 | limits: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 118 | cpu: 500m |
| 119 | memory: 3.75Gi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 120 | requests: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 121 | cpu: 160m |
Sylvain Desbureaux | 6e41a2c | 2021-02-05 21:33:31 +0100 | [diff] [blame] | 122 | memory: 3.1Gi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 123 | large: |
| 124 | limits: |
| 125 | cpu: 4 |
| 126 | memory: 10Gi |
| 127 | requests: |
| 128 | cpu: 2 |
| 129 | memory: 6Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 130 | unlimited: {} |
Sylvain Desbureaux | c23aa42 | 2021-02-15 15:28:19 +0100 | [diff] [blame] | 131 | |
| 132 | heap: |
| 133 | # Heap size is tightly correlated to RAM limits. |
| 134 | # If limit > 8G, Cassandra should define itself the best value. |
| 135 | # If not, you must set up it in a coherent way with limits set |
| 136 | # Refer to https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/operations/opsTuneJVM.html#Determiningtheheapsize |
| 137 | # for more informations. |
| 138 | small: |
| 139 | max: 3G |
| 140 | new: 100M |
| 141 | large: {} |
farida azmy | 31234fc | 2021-11-02 11:37:40 +0200 | [diff] [blame^] | 142 | unlimited: {} |
| 143 | |
| 144 | #Pods Service Account |
| 145 | serviceAccount: |
| 146 | nameOverride: portal-cassandra |
| 147 | roles: |
| 148 | - read |