Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / common / music / components / music-cassandra / values.yaml
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   persistence: {}
20
21 replicaCount: 1
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
27 image: onap/music/cassandra_3_11:3.0.24
28 pullPolicy: Always
29
30 # Cassandra ENV configuration
31 config:
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:
41     cql: &cqlPort 9042
42     thrift: &thriftPort 9160
43     # If a JVM Agent is in place
44     # agent: 61621
45
46 service:
47   expose: true
48   type: ClusterIP
49   name: &cassandraService music-cassandra
50   internalPort: *cqlPort
51   portName: cql
52   internalPort2: *thriftPort
53   portName2: thrift
54   internalPort3: 61621
55   portName3: agent
56
57 job:
58   host: *cassandraService
59   port: *cqlPort
60   timeout: 30
61   delay: 120
62   image: onap/music/cassandra_job:3.0.24
63
64 cql:
65   keyspace:
66     replicationClass: "SimpleStrategy"
67     replicationFactor: 3
68   adminUser:
69     username: nelson24
70     password: nelson24
71     passwordReplace: A2C4E6G8I0J2L4O6Q8S0U2W4Y6
72
73 # probe configuration parameters
74 liveness:
75   initialDelaySeconds: 1
76   periodSeconds: 10
77   timeoutSeconds: 10
78   successThreshold: 1
79   failureThreshold: 3
80   # necessary to disable liveness probe when setting breakpoints
81   # in debugger so K8s doesn't restart unresponsive container
82   enabled: true
83
84 readiness:
85   initialDelaySeconds: 1
86   periodSeconds: 10
87   timeoutSeconds: 10
88   successThreshold: 1
89   failureThreshold: 3
90
91 startup:
92   initialDelaySeconds: 10
93   periodSeconds: 10
94   timeoutSeconds: 10
95   successThreshold: 1
96   failureThreshold: 90
97
98 podManagementPolicy: OrderedReady
99 updateStrategy:
100   type: OnDelete
101
102 ingress:
103   enabled: false
104
105 tolerations: []
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: "-"
124   accessMode: ReadWriteOnce
125   size: 2Gi
126   mountPath: /dockerdata-nfs/
127   mountSubPath: common/cassandra/data
128
129 # Resource Limit flavor -By Default using small
130 flavor: small
131 # Segregation for Different environment (Small and Large)
132 resources:
133   small:
134     limits:
135       cpu: 500m
136       memory: 1.2Gi
137     requests:
138       cpu: 160m
139       memory: 900Mi
140   large:
141     limits:
142       cpu: 4
143       memory: 10Gi
144     requests:
145       cpu: 2
146       memory: 6Gi
147   unlimited: {}