blob: 853017226987b127907795fda584b7ecedb93fde [file] [log] [blame]
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -04001# 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.
17global:
18 nodePortPrefix: 302
Sylvain Desbureaux589ecb92020-11-19 17:19:06 +010019 persistence: {}
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040020
21replicaCount: 3
22
23# Cassandra Image - This image is modified from the original on
24# Docker Hub where the Security has been turned on.
25# When logging into DB the default username and password are 'cassandra'
26# kubectl exec -it <cassandra-n> -n <namespace> cqlsh -u cassandra -p cassandra
Sylvain Desbureaux589ecb92020-11-19 17:19:06 +010027image: onap/music/cassandra_3_11:3.0.24
28pullPolicy: Always
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040029
30# Cassandra ENV configuration
31config:
32 heap:
33 max: 512M
34 min: 100M
35 jvmOpts: -Dcassandra.consistent.rangemovement=false
36 clusterName: music-cluster
37 dataCenter: onap-1
38 rackName: Rack1
39 autoBootstrap: true
40 ports:
Sylvain Desbureaux589ecb92020-11-19 17:19:06 +010041 cql: &cqlPort 9042
42 thrift: &thriftPort 9160
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040043 # If a JVM Agent is in place
44 # agent: 61621
45
46service:
47 expose: true
48 type: ClusterIP
Sylvain Desbureaux589ecb92020-11-19 17:19:06 +010049 name: &cassandraService music-cassandra
50 internalPort: *cqlPort
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040051 portName: cql
Sylvain Desbureaux589ecb92020-11-19 17:19:06 +010052 internalPort2: *thriftPort
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040053 portName2: thrift
54 internalPort3: 61621
55 portName3: agent
56
Sylvain Desbureaux589ecb92020-11-19 17:19:06 +010057job:
58 host: *cassandraService
59 port: *cqlPort
60 timeout: 30
61 delay: 120
62 image: onap/music/cassandra_job:3.0.24
63
64cql:
65 keyspace:
66 replicationClass: "SimpleStrategy"
67 replicationFactor: 3
68 adminUser:
69 username: nelson24
70 password: nelson24
71 passwordReplace: A2C4E6G8I0J2L4O6Q8S0U2W4Y6
72
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040073# probe configuration parameters
74liveness:
75 initialDelaySeconds: 120
Sylvain Desbureaux226cbae2021-02-24 10:40:15 +010076 periodSeconds: 20
77 timeoutSeconds: 10
78 successThreshold: 1
79 failureThreshold: 3
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040080 # necessary to disable liveness probe when setting breakpoints
81 # in debugger so K8s doesn't restart unresponsive container
82 enabled: true
83
Sylvain Desbureaux589ecb92020-11-19 17:19:06 +010084readinessTimeout: 240
85
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040086readiness:
87 initialDelaySeconds: 10
Sylvain Desbureaux226cbae2021-02-24 10:40:15 +010088 periodSeconds: 20
89 timeoutSeconds: 10
90 successThreshold: 1
91 failureThreshold: 3
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -040092
93podManagementPolicy: OrderedReady
94updateStrategy:
95 type: OnDelete
96
97ingress:
98 enabled: false
99
100tolerations: []
101
102persistence:
103 enabled: true
104
105 ## A manually managed Persistent Volume and Claim
106 ## Requires persistence.enabled: true
107 ## If defined, PVC must be created manually before volume will be bound
108 # existingClaim:
109 volumeReclaimPolicy: Retain
110
111 ## database data Persistent Volume Storage Class
112 ## If defined, storageClassName: <storageClass>
113 ## If set to "-", storageClassName: "", which disables dynamic provisioning
114 ## If undefined (the default) or set to null, no storageClassName spec is
115 ## set, choosing the default provisioner. (gp2 on AWS, standard on
116 ## GKE, AWS & OpenStack)
117 ##
118 ## storageClass: "-"
119 accessMode: ReadWriteOnce
120 size: 2Gi
121 mountPath: /dockerdata-nfs/
122 mountSubPath: common/cassandra/data
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -0400123
Sylvain Desbureaux5ad860d2019-10-29 18:00:15 +0100124# Resource Limit flavor -By Default using small
125flavor: small
126# Segregation for Different environment (Small and Large)
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -0400127resources:
Sylvain Desbureaux5ad860d2019-10-29 18:00:15 +0100128 small:
129 limits:
130 cpu: 500m
131 memory: 1.2Gi
132 requests:
133 cpu: 160m
134 memory: 900Mi
135 large:
136 limits:
137 cpu: 4
138 memory: 10Gi
139 requests:
140 cpu: 2
141 memory: 6Gi
142 unlimited: {}