Nelson,Thomas(tn1381)(arthurdent3) | 4807fdf | 2018-09-19 16:52:36 -0400 | [diff] [blame] | 1 | # Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved. |
| 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 | # This is a YAML-formatted file. |
| 16 | # Declare variables to be passed into your templates. |
| 17 | global: |
| 18 | nodePortPrefix: 302 |
| 19 | |
| 20 | pullPolicy: Always |
| 21 | repository: nexus3.onap.org:10001 |
| 22 | |
| 23 | # readiness check |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 24 | readinessImage: onap/oom/readiness:3.0.1 |
Nelson,Thomas(tn1381)(arthurdent3) | 4807fdf | 2018-09-19 16:52:36 -0400 | [diff] [blame] | 25 | |
| 26 | # logging agent |
| 27 | loggingRepository: docker.elastic.co |
| 28 | loggingImage: beats/filebeat:5.5.0 |
| 29 | |
| 30 | replicaCount: 3 |
| 31 | |
| 32 | # Cassandra Image - This image is modified from the original on |
| 33 | # Docker Hub where the Security has been turned on. |
| 34 | # When logging into DB the default username and password are 'cassandra' |
| 35 | # kubectl exec -it <cassandra-n> -n <namespace> cqlsh -u cassandra -p cassandra |
| 36 | image: |
Gary Wu | 72901cd | 2018-11-15 18:27:40 -0800 | [diff] [blame] | 37 | image: onap/music/cassandra_3_11:3.0.24 |
Nelson,Thomas(tn1381)(arthurdent3) | 4807fdf | 2018-09-19 16:52:36 -0400 | [diff] [blame] | 38 | pullPolicy: Always |
| 39 | |
| 40 | # Cassandra ENV configuration |
| 41 | config: |
| 42 | heap: |
| 43 | max: 512M |
| 44 | min: 100M |
| 45 | jvmOpts: -Dcassandra.consistent.rangemovement=false |
| 46 | clusterName: music-cluster |
| 47 | dataCenter: onap-1 |
| 48 | rackName: Rack1 |
| 49 | autoBootstrap: true |
| 50 | ports: |
| 51 | cql: 9042 |
| 52 | thrift: 9160 |
| 53 | # If a JVM Agent is in place |
| 54 | # agent: 61621 |
| 55 | |
| 56 | service: |
| 57 | expose: true |
| 58 | type: ClusterIP |
| 59 | name: music-cassandra |
| 60 | internalPort: 9042 |
| 61 | portName: cql |
| 62 | internalPort2: 9160 |
| 63 | portName2: thrift |
| 64 | internalPort3: 61621 |
| 65 | portName3: agent |
| 66 | |
| 67 | # probe configuration parameters |
| 68 | liveness: |
| 69 | initialDelaySeconds: 120 |
| 70 | periodSeconds: 10 |
| 71 | # necessary to disable liveness probe when setting breakpoints |
| 72 | # in debugger so K8s doesn't restart unresponsive container |
| 73 | enabled: true |
| 74 | |
| 75 | readiness: |
| 76 | initialDelaySeconds: 10 |
| 77 | periodSeconds: 10 |
| 78 | |
| 79 | podManagementPolicy: OrderedReady |
| 80 | updateStrategy: |
| 81 | type: OnDelete |
| 82 | |
| 83 | ingress: |
| 84 | enabled: false |
| 85 | |
| 86 | tolerations: [] |
| 87 | |
| 88 | persistence: |
| 89 | enabled: true |
| 90 | |
| 91 | ## A manually managed Persistent Volume and Claim |
| 92 | ## Requires persistence.enabled: true |
| 93 | ## If defined, PVC must be created manually before volume will be bound |
| 94 | # existingClaim: |
| 95 | volumeReclaimPolicy: Retain |
| 96 | |
| 97 | ## database data Persistent Volume Storage Class |
| 98 | ## If defined, storageClassName: <storageClass> |
| 99 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 100 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 101 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 102 | ## GKE, AWS & OpenStack) |
| 103 | ## |
| 104 | ## storageClass: "-" |
| 105 | accessMode: ReadWriteOnce |
| 106 | size: 2Gi |
| 107 | mountPath: /dockerdata-nfs/ |
| 108 | mountSubPath: common/cassandra/data |
Nelson,Thomas(tn1381)(arthurdent3) | 4807fdf | 2018-09-19 16:52:36 -0400 | [diff] [blame] | 109 | |
Sylvain Desbureaux | 5ad860d | 2019-10-29 18:00:15 +0100 | [diff] [blame] | 110 | # Resource Limit flavor -By Default using small |
| 111 | flavor: small |
| 112 | # Segregation for Different environment (Small and Large) |
Nelson,Thomas(tn1381)(arthurdent3) | 4807fdf | 2018-09-19 16:52:36 -0400 | [diff] [blame] | 113 | resources: |
Sylvain Desbureaux | 5ad860d | 2019-10-29 18:00:15 +0100 | [diff] [blame] | 114 | small: |
| 115 | limits: |
| 116 | cpu: 500m |
| 117 | memory: 1.2Gi |
| 118 | requests: |
| 119 | cpu: 160m |
| 120 | memory: 900Mi |
| 121 | large: |
| 122 | limits: |
| 123 | cpu: 4 |
| 124 | memory: 10Gi |
| 125 | requests: |
| 126 | cpu: 2 |
| 127 | memory: 6Gi |
| 128 | unlimited: {} |