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 |
| 24 | repository: nexus3.onap.org:10001 |
| 25 | readinessRepository: oomk8s |
| 26 | readinessImage: readiness-check:2.0.2 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 27 | |
| 28 | # application image |
| 29 | repository: nexus3.onap.org:10001 |
shrek2000 | f336f6d | 2020-02-25 16:11:26 +0200 | [diff] [blame] | 30 | image: library/cassandra:3.11.4 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 31 | pullPolicy: Always |
| 32 | |
| 33 | # flag to enable debugging - application support required |
| 34 | debugEnabled: false |
| 35 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 36 | # application configuration |
| 37 | config: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 38 | cluster_domain: cluster.local |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 39 | heap: |
Akansha Dua | 7f145c7 | 2019-09-12 12:59:39 +0000 | [diff] [blame] | 40 | max: 2048M |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 41 | min: 100M |
| 42 | jvmOpts: -Dcassandra.consistent.rangemovement=false |
| 43 | clusterName: cassandra |
| 44 | dataCenter: Pod |
| 45 | rackName: Rack |
| 46 | autoBootstrap: true |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 47 | # If hostNetwork is true then provide the comma separated list of seeds. |
| 48 | #seeds:seed1,seed2 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 49 | |
| 50 | # default number of instances |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 51 | replicaCount: 3 |
| 52 | |
| 53 | hostNetwork: false |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 54 | |
| 55 | nodeSelector: {} |
| 56 | |
| 57 | affinity: {} |
| 58 | |
| 59 | # probe configuration parameters |
| 60 | liveness: |
| 61 | initialDelaySeconds: 60 |
| 62 | periodSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 63 | timeoutSeconds: 3 |
| 64 | successThreshold: 1 |
| 65 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 66 | # necessary to disable liveness probe when setting breakpoints |
| 67 | # in debugger so K8s doesn't restart unresponsive container |
| 68 | enabled: true |
| 69 | |
| 70 | readiness: |
Tomasz Golabek | 3365800 | 2019-05-30 08:59:39 +0200 | [diff] [blame] | 71 | initialDelaySeconds: 120 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 72 | periodSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 73 | timeoutSeconds: 3 |
| 74 | successThreshold: 1 |
| 75 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 76 | |
| 77 | service: |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 78 | name: cassandra |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 79 | headless: |
| 80 | suffix: "" |
| 81 | annotations: |
| 82 | service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" |
| 83 | publishNotReadyAddresses: true |
| 84 | headlessPorts: |
| 85 | - name: tcp-intra |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 86 | port: 7000 |
| 87 | - name: tls |
| 88 | port: 7001 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 89 | - name: tcp-jmx |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 90 | port: 7199 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 91 | - name: tcp-cql |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 92 | port: 9042 |
shrek2000 | f336f6d | 2020-02-25 16:11:26 +0200 | [diff] [blame] | 93 | ## 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] | 94 | - name: tcp-thrift |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 95 | port: 9160 |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 96 | - name: tcp-agent |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 97 | port: 61621 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 98 | |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 99 | podAnnotations: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 100 | podManagementPolicy: OrderedReady |
| 101 | updateStrategy: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 102 | type: RollingUpdate |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 103 | |
| 104 | ingress: |
| 105 | enabled: false |
| 106 | |
| 107 | persistence: |
| 108 | enabled: true |
| 109 | |
| 110 | ## A manually managed Persistent Volume and Claim |
| 111 | ## Requires persistence.enabled: true |
| 112 | ## If defined, PVC must be created manually before volume will be bound |
| 113 | # existingClaim: |
| 114 | volumeReclaimPolicy: Retain |
| 115 | |
| 116 | ## database data Persistent Volume Storage Class |
| 117 | ## If defined, storageClassName: <storageClass> |
| 118 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 119 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 120 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 121 | ## GKE, AWS & OpenStack) |
| 122 | ## |
| 123 | ## storageClass: "-" |
Sylvain Desbureaux | b7ed2ee | 2019-11-29 11:35:13 +0100 | [diff] [blame] | 124 | ## Not set as it depends of the backup enabledment or not. |
Sylvain Desbureaux | 60c7480 | 2019-12-12 14:35:01 +0100 | [diff] [blame] | 125 | accessMode: ReadWriteOnce |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 126 | size: 2Gi |
| 127 | mountPath: /dockerdata-nfs |
| 128 | mountSubPath: cassandra |
| 129 | storageType: local |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 130 | backup: |
| 131 | mountPath: /dockerdata-nfs/backup |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 132 | |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 133 | configOverrides: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 134 | |
| 135 | resources: {} |
| 136 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 137 | # choice for the user. This also increases chances charts run on environments with little |
| 138 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 139 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 140 | # |
| 141 | # Example: |
| 142 | # Configure resource requests and limits |
| 143 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 144 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 145 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 146 | #resources: |
| 147 | # limits: |
| 148 | # cpu: 2 |
| 149 | # memory: 4Gi |
| 150 | # requests: |
| 151 | # cpu: 2 |
| 152 | # memory: 4Gi |
Akansha Dua | 7b6e198 | 2019-09-04 13:36:12 +0000 | [diff] [blame] | 153 | backup: |
| 154 | enabled: false |
| 155 | cron: "00 00 * * *" |
| 156 | retentionPeriod: 3 |
| 157 | dbSize: 1 |
| 158 | keyspacesToSkip: |
| 159 | - name: system_traces |
| 160 | - name: system_auth |
| 161 | - name: system_distributed |