prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 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 |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 20 | persistence: |
| 21 | mountPath: /dockerdata-nfs |
| 22 | backup: |
| 23 | mountPath: /dockerdata-nfs/backup |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 24 | |
| 25 | # application image |
Sylvain Desbureaux | 7743d8b | 2020-11-19 16:45:23 +0100 | [diff] [blame] | 26 | image: cassandra:3.11.4 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 27 | pullPolicy: Always |
| 28 | |
| 29 | # flag to enable debugging - application support required |
| 30 | debugEnabled: false |
| 31 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 32 | # application configuration |
| 33 | config: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 34 | cluster_domain: cluster.local |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 35 | heap: |
Akansha Dua | 7f145c7 | 2019-09-12 12:59:39 +0000 | [diff] [blame] | 36 | max: 2048M |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 37 | min: 100M |
| 38 | jvmOpts: -Dcassandra.consistent.rangemovement=false |
| 39 | clusterName: cassandra |
| 40 | dataCenter: Pod |
| 41 | rackName: Rack |
| 42 | autoBootstrap: true |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 43 | # If hostNetwork is true then provide the comma separated list of seeds. |
| 44 | #seeds:seed1,seed2 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 45 | |
| 46 | # default number of instances |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 47 | replicaCount: 3 |
| 48 | |
| 49 | hostNetwork: false |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 50 | |
| 51 | nodeSelector: {} |
| 52 | |
| 53 | affinity: {} |
| 54 | |
| 55 | # probe configuration parameters |
| 56 | liveness: |
| 57 | initialDelaySeconds: 60 |
Sylvain Desbureaux | 276c3d9 | 2021-02-22 16:23:04 +0100 | [diff] [blame] | 58 | periodSeconds: 20 |
| 59 | timeoutSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 60 | successThreshold: 1 |
| 61 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 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: |
Tomasz Golabek | 3365800 | 2019-05-30 08:59:39 +0200 | [diff] [blame] | 67 | initialDelaySeconds: 120 |
Sylvain Desbureaux | 276c3d9 | 2021-02-22 16:23:04 +0100 | [diff] [blame] | 68 | periodSeconds: 20 |
| 69 | timeoutSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 70 | successThreshold: 1 |
| 71 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 72 | |
| 73 | service: |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 74 | name: cassandra |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 75 | headless: |
| 76 | suffix: "" |
| 77 | annotations: |
| 78 | service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" |
| 79 | publishNotReadyAddresses: true |
| 80 | headlessPorts: |
| 81 | - name: tcp-intra |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 82 | port: 7000 |
| 83 | - name: tls |
| 84 | port: 7001 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 85 | - name: tcp-jmx |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 86 | port: 7199 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 87 | - name: tcp-cql |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 88 | port: 9042 |
shrek2000 | f336f6d | 2020-02-25 16:11:26 +0200 | [diff] [blame] | 89 | ## thrift protocol is deprecated . Should be removed. Being left until all project removes it. |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 90 | - name: tcp-thrift |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 91 | port: 9160 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 92 | - name: tcp-agent |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 93 | port: 61621 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 94 | |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 95 | podAnnotations: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 96 | podManagementPolicy: OrderedReady |
| 97 | updateStrategy: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 98 | type: RollingUpdate |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 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: "-" |
Sylvain Desbureaux | b7ed2ee | 2019-11-29 11:35:13 +0100 | [diff] [blame] | 120 | ## Not set as it depends of the backup enabledment or not. |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 121 | accessMode: ReadWriteOnce |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 122 | size: 2Gi |
| 123 | mountPath: /dockerdata-nfs |
| 124 | mountSubPath: cassandra |
| 125 | storageType: local |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 126 | backup: |
| 127 | mountPath: /dockerdata-nfs/backup |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 128 | |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 129 | configOverrides: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 130 | |
Sylvain Desbureaux | 77c848a | 2020-09-23 14:21:30 +0200 | [diff] [blame] | 131 | # resources: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 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 |
Sylvain Desbureaux | 77c848a | 2020-09-23 14:21:30 +0200 | [diff] [blame] | 142 | resources: |
| 143 | limits: |
| 144 | cpu: 0.8 |
| 145 | memory: 4Gi |
| 146 | requests: |
| 147 | cpu: 0.2 |
| 148 | memory: 2.5Gi |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 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 |