Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 AT&T |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | # Default values for mariadb. |
| 17 | # This is a YAML-formatted file. |
| 18 | # Declare variables to be passed into your templates. |
| 19 | global: # global defaults |
| 20 | nodePortPrefix: 302 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 21 | persistence: {} |
| 22 | |
| 23 | |
| 24 | # application image |
| 25 | repository: nexus3.onap.org:10001 |
Gary Wu | 7a69b08 | 2018-05-08 07:28:24 -0700 | [diff] [blame] | 26 | image: onap/music/cassandra_music:3.0.0 |
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 |
| 56 | periodSeconds: 10 |
| 57 | # necessary to disable liveness probe when setting breakpoints |
| 58 | # in debugger so K8s doesn't restart unresponsive container |
| 59 | enabled: true |
| 60 | |
| 61 | readiness: |
| 62 | initialDelaySeconds: 10 |
| 63 | periodSeconds: 10 |
| 64 | |
Roger Maitland | 28c0645 | 2018-04-10 14:43:57 -0400 | [diff] [blame] | 65 | ## Persist data to a persitent volume |
| 66 | persistence: |
| 67 | enabled: true |
| 68 | |
| 69 | ## A manually managed Persistent Volume and Claim |
| 70 | ## Requires persistence.enabled: true |
| 71 | ## If defined, PVC must be created manually before volume will be bound |
| 72 | # existingClaim: |
| 73 | volumeReclaimPolicy: Retain |
| 74 | |
| 75 | ## database data Persistent Volume Storage Class |
| 76 | ## If defined, storageClassName: <storageClass> |
| 77 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 78 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 79 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 80 | ## GKE, AWS & OpenStack) |
| 81 | ## |
| 82 | # storageClass: "-" |
Sylvain Desbureaux | cce22e9 | 2019-09-02 14:18:42 +0200 | [diff] [blame] | 83 | accessMode: ReadWriteOnce |
Roger Maitland | 28c0645 | 2018-04-10 14:43:57 -0400 | [diff] [blame] | 84 | size: 2Gi |
| 85 | mountPath: /dockerdata-nfs |
| 86 | mountSubPath: portal/cassandra/data |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 87 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 88 | service: |
| 89 | type: ClusterIP |
| 90 | name: portal-cassandra |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 91 | portName: portal-cassandra |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 92 | externalPort: 9160 |
| 93 | internalPort: 9160 |
| 94 | externalPort2: 7000 |
| 95 | internalPort2: 7000 |
| 96 | externalPort3: 7001 |
| 97 | internalPort3: 7001 |
| 98 | externalPort4: 7199 |
| 99 | internalPort4: 7199 |
| 100 | externalPort5: 9042 |
| 101 | internalPort5: 9042 |
| 102 | |
| 103 | ingress: |
| 104 | enabled: false |
| 105 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 106 | # Resource Limit flavor -By Default using small |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 107 | flavor: small |
| 108 | # Segregation for Different environment (Small and Large) |
| 109 | resources: |
| 110 | small: |
| 111 | limits: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 112 | cpu: 500m |
| 113 | memory: 3.75Gi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 114 | requests: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 115 | cpu: 160m |
| 116 | memory: 2.8Gi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 117 | large: |
| 118 | limits: |
| 119 | cpu: 4 |
| 120 | memory: 10Gi |
| 121 | requests: |
| 122 | cpu: 2 |
| 123 | memory: 6Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 124 | unlimited: {} |