Merge "Add resource limit for aai"
[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.0
27
28   loggingRepository: docker.elastic.co
29   loggingImage: beats/filebeat:5.5.0
30
31   restartPolicy: Always
32
33   cassandra:
34     serviceName: aai-cassandra
35     replicas: 3
36
37   aai:
38     serviceName: aai
39   babel:
40     serviceName: aai-babel
41   champ:
42     serviceName: aai-champ
43   aaiElasticsearch:
44     serviceName: aai-elasticsearch
45   resources:
46     serviceName: aai-resources
47   sparkyBe:
48     serviceName: aai-sparky-be
49   dataRouter:
50     serviceName: aai-data-router
51   gizmo:
52     serviceName: aai-gizmo
53   modelloader:
54     serviceName: aai-modelloader
55   searchData:
56     serviceName: aai-search-data
57   traversal:
58     serviceName: aai-traversal
59   graphadmin:
60     serviceName: aai-graphadmin
61   spike:
62     serviceName: aai-spike
63
64   initContainers:
65     enabled: true
66   # Specifies a list of jobs to be run
67   jobs:
68     # When enabled, it will create the schema based on oxm and edge rules
69     createSchema:
70       enabled: true
71     # When enabled, it will create the widget models via REST API to haproxy
72     updateQueryData:
73       enabled: true
74
75   # Common configuration for resources traversal and graphadmin
76   config:
77     # User information for the admin user in container
78     userId: 1000
79     groupId: 1000
80
81     # Specifies that the cluster connected to a dynamic
82     # cluster being spinned up by kubernetes deployment
83     cluster:
84       cassandra:
85         dynamic: true
86
87     # If cluster.cassandra.dynamic is set to false
88     # Then the following configuration should be uncommented
89     # This is if you are planning to connect to a existing
90     # Cassandra cluster instead of doing the deployment
91     #storage:
92     #  backend: cassandra
93     #  hostname: somehost1,somehost2,somehost3
94     #  connectionTimeout: 100000
95     #  cacheSize: 1000000
96     #  clusterName: someClusterName
97     #  localDataCenter: someDataCenter
98     #  keyConsistent: true
99     #  # If backend is cql or cassandra it should be keyspace name
100     #  # else backend is hbase it should be hbase table name
101     #  name: your_hbase_table_or_keyspace_name
102
103     #  # CQL driver specific properties for janusgraph
104     #  cql:
105     #    # Name of the Cassandra Cluster
106     #    cluster: someclustername
107     #    readConsistency: QUORUM
108     #    writeConsistency: QUORUM
109     #    replicationFactor: 3
110     #    localConsistencyForSysOps: true
111
112     #  # Cassandra driver specific properties for janusgraph
113     #  cassandra:
114     #    # Name of the Cassandra Cluster
115     #    cluster: someclustername
116     #    readConsistency: LOCAL_QUORUM
117     #    writeConsistency: LOCAL_QUORUM
118     #    replicationFactor: 3
119
120     # Specifies if the basic authorization is enabled
121     basic:
122       auth:
123         enabled: true
124         username: AAI
125         passwd: AAI
126
127     # Active spring profiles for the resources microservice
128     profiles:
129       active: production,dmaap,one-way-ssl
130
131     # Notification event specific properties
132     notification:
133       eventType: AAI-EVENT
134       domain: dev
135
136     # Schema specific properties that include supported versions of api
137     schema:
138       source:
139         # Specifies which folder to take a look at
140         name: onap
141       uri:
142         # Base URI Path of the application
143         base:
144           path: /aai
145       version:
146         # Current version of the REST API
147         api:
148           default: v14
149         # Specifies which version the depth parameter is configurable
150         depth: v9
151         # List of all the supported versions of the API
152         list: v8,v9,v10,v11,v12,v13,v14
153         # Specifies from which version related link should appear
154         related:
155           link: v10
156         # Specifies from which version the app root change happened
157         app:
158           root: v11
159         # Specifies from which version the xml namespace changed
160         namespace:
161           change: v12
162         # Specifies from which version the edge label appeared in API
163         edge:
164           label: v12
165
166     # Keystore configuration password and filename
167     keystore:
168       filename: aai_keystore
169       passwd: OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
170
171     # Truststore configuration password and filename
172     truststore:
173       filename: aai_keystore
174       passwd: OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
175
176     # Specifies a list of files to be included in auth volume
177     auth:
178       files:
179         - aai_keystore
180
181     # Specifies which clients should always default to realtime graph connection
182     realtime:
183       clients: SDNC,MSO,SO,robot-ete
184
185     # Logback debug enabled
186     logback:
187       console:
188         # If enabled, container will print all logback to standard output
189         # This will make debugging much easier but it should only be done
190         # when debugging the issue and changed back as it can affect performance
191         # since when this is enabled, it prints a lot of information to console
192         enabled: false
193
194 # application image
195 dockerhubRepository: registry.hub.docker.com
196 image: aaionap/haproxy:1.2.4
197 pullPolicy: Always
198
199 flavor: small
200
201 # flag to enable debugging - application support required
202 debugEnabled: false
203
204 # application configuration
205 config:
206   logstashServiceName: log-ls
207   logstashPort: 5044
208
209 # default number of instances
210 replicaCount: 1
211
212 nodeSelector: {}
213
214 affinity: {}
215
216 # probe configuration parameters
217 liveness:
218   initialDelaySeconds: 10
219   periodSeconds: 10
220   # necessary to disable liveness probe when setting breakpoints
221   # in debugger so K8s doesn't restart unresponsive container
222   enabled: true
223
224 readiness:
225   initialDelaySeconds: 10
226   periodSeconds: 10
227
228 service:
229   type: NodePort
230   portName: aai
231   externalPort: 8080
232   internalPort: 8080
233   nodePort: 32
234   portName2: aai-ssl
235   externalPort2: 8443
236   internalPort2: 8443
237   nodePort2: 33
238   # POLICY hotfix - Note this must be temporary
239   # See https://jira.onap.org/browse/POLICY-510
240   aaiServiceClusterIp:
241
242 ingress:
243   enabled: false
244
245   # We usually recommend not to specify default resources and to leave this as a conscious
246   # choice for the user. This also increases chances charts run on environments with little
247   # resources, such as Minikube. If you do want to specify resources, uncomment the following
248   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
249   #
250   # Example:
251   # Configure resource requests and limits
252   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
253   # Minimum memory for development is 2 CPU cores and 4GB memory
254   # Minimum memory for production is 4 CPU cores and 8GB memory
255 resources:
256   small:
257     limits:
258       cpu: 2
259       memory: 4Gi
260     requests:
261       cpu: 2
262       memory: 4Gi
263   large:
264     limits:
265       cpu: 4
266       memory: 8Gi
267     requests:
268       cpu: 4
269       memory: 8Gi