Upgrade AAI to use common shared Cassandra
[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
108   # Common configuration for resources traversal and graphadmin
109   config:
110     # User information for the admin user in container
111     userId: 1000
112     groupId: 1000
113
114     # Specifies that the cluster connected to a dynamic
115     # cluster being spinned up by kubernetes deployment
116     cluster:
117       cassandra:
118         dynamic: true
119
120     # If cluster.cassandra.dynamic is set to false
121     # Then the following configuration should be uncommented
122     # This is if you are planning to connect to a existing
123     # Cassandra cluster instead of doing the deployment
124     #storage:
125     #  backend: cassandra
126     #  hostname: somehost1,somehost2,somehost3
127     #  connectionTimeout: 100000
128     #  cacheSize: 1000000
129     #  clusterName: someClusterName
130     #  localDataCenter: someDataCenter
131     #  keyConsistent: true
132     #  # If backend is cql or cassandra it should be keyspace name
133     #  # else backend is hbase it should be hbase table name
134     #  name: your_hbase_table_or_keyspace_name
135
136     #  # CQL driver specific properties for janusgraph
137     #  cql:
138     #    # Name of the Cassandra Cluster
139     #    cluster: someclustername
140     #    readConsistency: QUORUM
141     #    writeConsistency: QUORUM
142     #    replicationFactor: 3
143     #    localConsistencyForSysOps: true
144
145     #  # Cassandra driver specific properties for janusgraph
146     #  cassandra:
147     #    # Name of the Cassandra Cluster
148     #    cluster: someclustername
149     #    readConsistency: LOCAL_QUORUM
150     #    writeConsistency: LOCAL_QUORUM
151     #    replicationFactor: 3
152
153     # Specifies if the basic authorization is enabled
154     basic:
155       auth:
156         enabled: true
157         username: AAI
158         passwd: AAI
159
160     # Active spring profiles for the resources microservice
161     profiles:
162       active: production,dmaap,aaf-auth
163
164     # Notification event specific properties
165     notification:
166       eventType: AAI-EVENT
167       domain: dev
168
169     # Schema specific properties that include supported versions of api
170     schema:
171       # Specifies if the connection should be one way ssl, two way ssl or no auth
172       service:
173         client: one-way-ssl
174       # Specifies which translator to use if it has schema-service, then it will make a rest request to schema service
175       translator:
176         list: schema-service
177       source:
178         # Specifies which folder to take a look at
179         name: onap
180       uri:
181         # Base URI Path of the application
182         base:
183           path: /aai
184       version:
185         # Current version of the REST API
186         api:
187           default: v16
188         # Specifies which version the depth parameter is configurable
189         depth: v11
190         # List of all the supported versions of the API
191         list: v11,v12,v13,v14,v15,v16
192         # Specifies from which version related link should appear
193         related:
194           link: v11
195         # Specifies from which version the app root change happened
196         app:
197           root: v11
198         # Specifies from which version the xml namespace changed
199         namespace:
200           change: v12
201         # Specifies from which version the edge label appeared in API
202         edge:
203           label: v12
204
205     # Keystore configuration password and filename
206     keystore:
207       filename: aai_keystore
208       passwd: OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
209
210     # Truststore configuration password and filename
211     truststore:
212       filename: aai_keystore
213       passwd: OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
214
215     # Specifies a list of files to be included in auth volume
216     auth:
217       files:
218         - aai_keystore
219
220     # Specifies which clients should always default to realtime graph connection
221     realtime:
222       clients: SDNC,MSO,SO,robot-ete
223
224     # Logback debug enabled
225     logback:
226       console:
227         # If enabled, container will print all logback to standard output
228         # This will make debugging much easier but it should only be done
229         # when debugging the issue and changed back as it can affect performance
230         # since when this is enabled, it prints a lot of information to console
231         enabled: false
232
233 # application image
234 dockerhubRepository: registry.hub.docker.com
235 image: aaionap/haproxy:1.2.4
236 pullPolicy: Always
237
238 flavor: small
239
240 # flag to enable debugging - application support required
241 debugEnabled: false
242
243 # application configuration
244 config:
245   logstashServiceName: log-ls
246   logstashPort: 5044
247
248 # default number of instances
249 replicaCount: 1
250
251 nodeSelector: {}
252
253 affinity: {}
254
255 # probe configuration parameters
256 liveness:
257   initialDelaySeconds: 10
258   periodSeconds: 10
259   # necessary to disable liveness probe when setting breakpoints
260   # in debugger so K8s doesn't restart unresponsive container
261   enabled: true
262
263 #This section is used when localCluster is enabled. AAI will create its own cassandra cluster for its specific use.
264 #Below command will instantiate the aai cassandra instances:
265 #helm deploy demo local/onap --version=4.0.0 --namespace onap --set aai.enabled=true \
266 #                            --set aai.global.cassandra.localCluster=true \
267 #                            --set aai.global.cassandra.serviceName=aai-cassandra
268 cassandra:
269   nameOverride: aai-cassandra
270   replicaCount: 3
271   service:
272     name: aai-cassandra
273   persistence:
274     mountSubPath: aai/cassandra
275     enabled: true
276
277 readiness:
278   initialDelaySeconds: 10
279   periodSeconds: 10
280
281 service:
282   type: NodePort
283   portName: aai
284   externalPort: 8080
285   internalPort: 8080
286   nodePort: 32
287   portName2: aai-ssl
288   externalPort2: 8443
289   internalPort2: 8443
290   nodePort2: 33
291   # POLICY hotfix - Note this must be temporary
292   # See https://jira.onap.org/browse/POLICY-510
293   aaiServiceClusterIp:
294
295 ingress:
296   enabled: false
297
298 resources:
299   small:
300     limits:
301       cpu: 2
302       memory: 4Gi
303     requests:
304       cpu: 1
305       memory: 1Gi
306   large:
307     limits:
308       cpu: 4
309       memory: 8Gi
310     requests:
311       cpu: 2
312       memory: 2Gi
313   unlimited: {}