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 |
| 20 | |
| 21 | |
| 22 | # application image |
| 23 | repository: nexus3.onap.org:10001 |
mahendrr | b2cb47a | 2019-04-30 10:57:16 +0000 | [diff] [blame] | 24 | image: library/cassandra:2.1.17 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 25 | pullPolicy: Always |
| 26 | |
| 27 | # flag to enable debugging - application support required |
| 28 | debugEnabled: false |
| 29 | |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 30 | # application configuration |
| 31 | config: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 32 | cluster_domain: cluster.local |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 33 | heap: |
| 34 | max: 512M |
| 35 | min: 100M |
| 36 | jvmOpts: -Dcassandra.consistent.rangemovement=false |
| 37 | clusterName: cassandra |
| 38 | dataCenter: Pod |
| 39 | rackName: Rack |
| 40 | autoBootstrap: true |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 41 | # If hostNetwork is true then provide the comma separated list of seeds. |
| 42 | #seeds:seed1,seed2 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 43 | |
| 44 | # default number of instances |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 45 | replicaCount: 3 |
| 46 | |
| 47 | hostNetwork: false |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 48 | |
| 49 | nodeSelector: {} |
| 50 | |
| 51 | affinity: {} |
| 52 | |
| 53 | # probe configuration parameters |
| 54 | liveness: |
| 55 | initialDelaySeconds: 60 |
| 56 | periodSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 57 | timeoutSeconds: 3 |
| 58 | successThreshold: 1 |
| 59 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +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: 60 |
| 66 | periodSeconds: 10 |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 67 | timeoutSeconds: 3 |
| 68 | successThreshold: 1 |
| 69 | failureThreshold: 3 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 70 | |
| 71 | service: |
| 72 | type: ClusterIP |
| 73 | name: cassandra |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 74 | ports: |
| 75 | - name: intra |
| 76 | port: 7000 |
| 77 | - name: tls |
| 78 | port: 7001 |
| 79 | - name: jmx |
| 80 | port: 7199 |
| 81 | - name: cql |
| 82 | port: 9042 |
| 83 | - name: thrift |
| 84 | port: 9160 |
| 85 | - name: agent |
| 86 | port: 61621 |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 87 | |
| 88 | podManagementPolicy: OrderedReady |
| 89 | updateStrategy: |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 90 | type: RollingUpdate |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 91 | |
| 92 | ingress: |
| 93 | enabled: false |
| 94 | |
| 95 | persistence: |
| 96 | enabled: true |
| 97 | |
| 98 | ## A manually managed Persistent Volume and Claim |
| 99 | ## Requires persistence.enabled: true |
| 100 | ## If defined, PVC must be created manually before volume will be bound |
| 101 | # existingClaim: |
| 102 | volumeReclaimPolicy: Retain |
| 103 | |
| 104 | ## database data Persistent Volume Storage Class |
| 105 | ## If defined, storageClassName: <storageClass> |
| 106 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 107 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 108 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 109 | ## GKE, AWS & OpenStack) |
| 110 | ## |
| 111 | ## storageClass: "-" |
| 112 | accessMode: ReadWriteOnce |
| 113 | size: 2Gi |
| 114 | mountPath: /dockerdata-nfs |
| 115 | mountSubPath: cassandra |
| 116 | storageType: local |
| 117 | storageClass: "" |
| 118 | |
Mahendra Raghuwanshi | f59d925 | 2019-02-20 06:54:46 +0000 | [diff] [blame] | 119 | configOverrides: {} |
prpatel | afedf2c | 2018-09-07 15:28:38 +0000 | [diff] [blame] | 120 | |
| 121 | resources: {} |
| 122 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 123 | # choice for the user. This also increases chances charts run on environments with little |
| 124 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 125 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 126 | # |
| 127 | # Example: |
| 128 | # Configure resource requests and limits |
| 129 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 130 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 131 | # Minimum memory for production is 4 CPU cores and 8GB memory |
| 132 | #resources: |
| 133 | # limits: |
| 134 | # cpu: 2 |
| 135 | # memory: 4Gi |
| 136 | # requests: |
| 137 | # cpu: 2 |
| 138 | # memory: 4Gi |