AAI Rolling upgrade using helm hooks
[oom.git] / kubernetes / aai / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
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 aai.
17 # This is a YAML-formatted file.
18 # Declare variables to be passed into your templates.
19 global: # global defaults
20   nodePortPrefix: 302
21   repository: nexus3.onap.org:10001
22   dockerhubRepository: docker.io
23   busyboxImage: busybox
24
25   readinessRepository: oomk8s
26   readinessImage: readiness-check:2.0.2
27
28   loggingRepository: docker.elastic.co
29   loggingImage: beats/filebeat:5.5.0
30
31   restartPolicy: Always
32
33   installSidecarSecurity: false
34   aafEnabled: true
35
36   fproxy:
37     name: forward-proxy
38     activeSpringProfiles: noHostVerification,cadi
39     image: onap/fproxy:2.1-STAGING-latest
40     port: 10680
41
42   rproxy:
43     name: reverse-proxy
44     activeSpringProfiles: noHostVerification,cadi
45     image: onap/rproxy:2.1-STAGING-latest
46     port: 10692
47
48   tproxyConfig:
49     name: init-tproxy-config
50     image: onap/tproxy-config:2.1-STAGING-latest
51
52   # AAF server details. Only needed if the AAF DNS does not resolve from the pod
53   aaf:
54     serverIp: 10.12.6.214
55     serverHostname: aaf.osaaf.org
56     serverPort: 30247
57
58   cassandra:
59     #This will instantiate AAI cassandra cluster, default:shared cassandra.
60     localCluster: false
61
62     #Service Name of the cassandra cluster to connect to.
63     #Override it to aai-cassandra if localCluster is enabled.
64     serviceName: cassandra
65
66     #This should be same as shared cassandra instance or if localCluster is enabled 
67     #then it should be same as aai-cassandra replicaCount 
68     replicas: 3
69
70   aai:
71     serviceName: aai
72   babel:
73     serviceName: aai-babel
74   champ:
75     serviceName: aai-champ
76   aaiElasticsearch:
77     serviceName: aai-elasticsearch
78   resources:
79     serviceName: aai-resources
80   sparkyBe:
81     serviceName: aai-sparky-be
82   dataRouter:
83     serviceName: aai-data-router
84   gizmo:
85     serviceName: aai-gizmo
86   modelloader:
87     serviceName: aai-modelloader
88   searchData:
89     serviceName: aai-search-data
90   traversal:
91     serviceName: aai-traversal
92   graphadmin:
93     serviceName: aai-graphadmin
94   spike:
95     serviceName: aai-spike
96
97   initContainers:
98     enabled: true
99   # Specifies a list of jobs to be run
100   jobs:
101     # When enabled, it will create the schema based on oxm and edge rules
102     createSchema:
103       enabled: true
104     # When enabled, it will create the widget models via REST API to haproxy
105     updateQueryData:
106       enabled: true
107     #migration using helm hooks
108     migration:
109       enabled: false
110       remoteCassandra:
111         enabled: false
112         storage:
113           backend: cassandra
114           hostname: 10.10.10.10
115           connectionTimeout: 100000
116           cacheSize: 1000000
117           keyConsistent: true
118
119           #If backend is cql or cassandra it should be keyspace name
120           #else backend is hbase it should be hbase table name
121           name: aaigraph
122
123        ## CQL driver specific properties for janusgraph
124        #  cql:
125        #    #Name of the Cassandra Cluster
126        #    cluster: someclustername
127        #    readConsistency: QUORUM
128        #    writeConsistency: QUORUM
129        #    replicationFactor: 3
130        #    localConsistencyForSysOps: true
131
132        ## Cassandra driver specific properties for janusgraph
133           cassandra:
134             #Name of the Cassandra Cluster
135             clusterName: aai-cluster
136             localDataCenter: Pod lab
137             readConsistency: LOCAL_QUORUM
138             writeConsistency: LOCAL_QUORUM
139             replicationFactor: 3
140
141         #storage:
142         #  backend: cassandra
143         #  hostname: somehost1,somehost2,somehost3
144         #  connectionTimeout: 100000
145         #  cacheSize: 1000000
146         #  clusterName: someClusterName
147         #  localDataCenter: someDataCenter
148         #  keyConsistent: true
149         #  #If backend is cql or cassandra it should be keyspace name
150         #  #else backend is hbase it should be hbase table name
151         #  name: your_hbase_table_or_keyspace_name
152
153         ## CQL driver specific properties for janusgraph
154         #  cql:
155         #    #Name of the Cassandra Cluster
156         #    cluster: someclustername
157         #    readConsistency: QUORUM
158         #    writeConsistency: QUORUM
159         #    replicationFactor: 3
160         #    localConsistencyForSysOps: true
161
162         ## Cassandra driver specific properties for janusgraph
163         #  cassandra:
164         #    #Name of the Cassandra Cluster
165         #    cluster: someclustername
166         #    readConsistency: LOCAL_QUORUM
167         #    writeConsistency: LOCAL_QUORUM
168         #    replicationFactor: 3
169
170
171   # Common configuration for resources traversal and graphadmin
172   config:
173     # User information for the admin user in container
174     userId: 1000
175     groupId: 1000
176
177     # Specifies that the cluster connected to a dynamic
178     # cluster being spinned up by kubernetes deployment
179     cluster:
180       cassandra:
181         dynamic: true
182
183     # If cluster.cassandra.dynamic is set to false
184     # Then the following configuration should be uncommented
185     # This is if you are planning to connect to a existing
186     # Cassandra cluster instead of doing the deployment
187     #storage:
188     #  backend: cassandra
189     #  hostname: somehost1,somehost2,somehost3
190     #  connectionTimeout: 100000
191     #  cacheSize: 1000000
192     #  clusterName: someClusterName
193     #  localDataCenter: someDataCenter
194     #  keyConsistent: true
195     #  # If backend is cql or cassandra it should be keyspace name
196     #  # else backend is hbase it should be hbase table name
197     #  name: your_hbase_table_or_keyspace_name
198
199     #  # CQL driver specific properties for janusgraph
200     #  cql:
201     #    # Name of the Cassandra Cluster
202     #    cluster: someclustername
203     #    readConsistency: QUORUM
204     #    writeConsistency: QUORUM
205     #    replicationFactor: 3
206     #    localConsistencyForSysOps: true
207
208     #  # Cassandra driver specific properties for janusgraph
209     #  cassandra:
210     #    # Name of the Cassandra Cluster
211     #    cluster: someclustername
212     #    readConsistency: LOCAL_QUORUM
213     #    writeConsistency: LOCAL_QUORUM
214     #    replicationFactor: 3
215
216     # Specifies if the basic authorization is enabled
217     basic:
218       auth:
219         enabled: true
220         username: AAI
221         passwd: AAI
222
223     # Active spring profiles for the resources microservice
224     profiles:
225       active: production,dmaap,aaf-auth
226
227     # Notification event specific properties
228     notification:
229       eventType: AAI-EVENT
230       domain: dev
231
232     # Schema specific properties that include supported versions of api
233     schema:
234       # Specifies if the connection should be one way ssl, two way ssl or no auth
235       service:
236         client: one-way-ssl
237       # Specifies which translator to use if it has schema-service, then it will make a rest request to schema service
238       translator:
239         list: schema-service
240       source:
241         # Specifies which folder to take a look at
242         name: onap
243       uri:
244         # Base URI Path of the application
245         base:
246           path: /aai
247       version:
248         # Current version of the REST API
249         api:
250           default: v16
251         # Specifies which version the depth parameter is configurable
252         depth: v11
253         # List of all the supported versions of the API
254         list: v11,v12,v13,v14,v15,v16
255         # Specifies from which version related link should appear
256         related:
257           link: v11
258         # Specifies from which version the app root change happened
259         app:
260           root: v11
261         # Specifies from which version the xml namespace changed
262         namespace:
263           change: v12
264         # Specifies from which version the edge label appeared in API
265         edge:
266           label: v12
267
268     # Keystore configuration password and filename
269     keystore:
270       filename: aai_keystore
271       passwd: OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
272
273     # Truststore configuration password and filename
274     truststore:
275       filename: aai_keystore
276       passwd: OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
277
278     # Specifies a list of files to be included in auth volume
279     auth:
280       files:
281         - aai_keystore
282
283     # Specifies which clients should always default to realtime graph connection
284     realtime:
285       clients: SDNC,MSO,SO,robot-ete
286
287     # Logback debug enabled
288     logback:
289       console:
290         # If enabled, container will print all logback to standard output
291         # This will make debugging much easier but it should only be done
292         # when debugging the issue and changed back as it can affect performance
293         # since when this is enabled, it prints a lot of information to console
294         enabled: false
295
296 # application image
297 dockerhubRepository: registry.hub.docker.com
298 image: aaionap/haproxy:1.2.4
299 pullPolicy: Always
300
301 flavor: small
302
303 # flag to enable debugging - application support required
304 debugEnabled: false
305
306 # application configuration
307 config:
308   logstashServiceName: log-ls
309   logstashPort: 5044
310
311 # default number of instances
312 replicaCount: 1
313
314 nodeSelector: {}
315
316 affinity: {}
317
318 # probe configuration parameters
319 liveness:
320   initialDelaySeconds: 10
321   periodSeconds: 10
322   # necessary to disable liveness probe when setting breakpoints
323   # in debugger so K8s doesn't restart unresponsive container
324   enabled: true
325
326 #This section is used when localCluster is enabled. AAI will create its own cassandra cluster for its specific use.
327 #Below command will instantiate the aai cassandra instances:
328 #helm deploy demo local/onap --version=4.0.0 --namespace onap --set aai.enabled=true \
329 #                            --set aai.global.cassandra.localCluster=true \
330 #                            --set aai.global.cassandra.serviceName=aai-cassandra
331 cassandra:
332   nameOverride: aai-cassandra
333   replicaCount: 3
334   service:
335     name: aai-cassandra
336   persistence:
337     mountSubPath: aai/cassandra
338     enabled: true
339
340 readiness:
341   initialDelaySeconds: 10
342   periodSeconds: 10
343
344 service:
345   type: NodePort
346   portName: aai
347   externalPort: 8080
348   internalPort: 8080
349   nodePort: 32
350   portName2: aai-ssl
351   externalPort2: 8443
352   internalPort2: 8443
353   nodePort2: 33
354   # POLICY hotfix - Note this must be temporary
355   # See https://jira.onap.org/browse/POLICY-510
356   aaiServiceClusterIp:
357
358 ingress:
359   enabled: false
360
361 resources:
362   small:
363     limits:
364       cpu: 2
365       memory: 4Gi
366     requests:
367       cpu: 1
368       memory: 1Gi
369   large:
370     limits:
371       cpu: 4
372       memory: 8Gi
373     requests:
374       cpu: 2
375       memory: 2Gi
376   unlimited: {}