[GENERAL] Use readiness container v3.0.1
[oom.git] / kubernetes / nbi / values.yaml
1 # Copyright © 2018 Orange
2 # Modifications Copyright © 2018  Amdocs, Bell Canada
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 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   nodePortPrefix: 302
21   readinessImage: onap/oom/readiness:3.0.1
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   mariadbGalera: &mariadbGalera
25     #This flag allows SO to instantiate its own mariadb-galera cluster
26     localCluster: false
27     service: mariadb-galera
28     internalPort: 3306
29     nameOverride: mariadb-galera
30   aafEnabled: true
31   busyBoxImage: busybox:1.30
32   busyBoxRepository: docker.io
33
34 #################################################################
35 # AAF part
36 #################################################################
37 certInitializer:
38   nameOverride: nbi-cert-initializer
39   aafDeployFqi: deployer@people.osaaf.org
40   aafDeployPass: demo123456!
41   # aafDeployCredsExternalSecret: some secret
42   fqdn: nbi
43   fqi: nbi@nbi.onap.org
44   public_fqdn: nbi.onap.org
45   cadi_longitude: "0.0"
46   cadi_latitude: "0.0"
47   app_ns: org.osaaf.aaf
48   credsPath: /opt/app/osaaf/local
49   aaf_add_config: >
50     /opt/app/aaf_config/bin/agent.sh;
51     /opt/app/aaf_config/bin/agent.sh local showpass
52     {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop
53
54 aafConfig:
55   permission_user: 1000
56   permission_group: 999
57
58 #################################################################
59 # Secrets metaconfig
60 #################################################################
61 secrets:
62   - uid: nbi-db-secret
63     name: '{{ include "common.release" . }}-nbi-db-secret'
64     type: basicAuth
65     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
66     login: '{{ .Values.config.db.userName }}'
67     password: '{{ .Values.config.db.userPassword }}'
68
69 subChartsOnly:
70   enabled: true
71
72 # application image
73 repository: nexus3.onap.org:10001
74 image: onap/externalapi/nbi:7.0.0
75 pullPolicy: IfNotPresent
76 sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
77 aai_authorization: Basic QUFJOkFBSQ==
78 so_authorization:
79
80 # application configuration
81 config:
82   loglevel: INFO
83   logstashServiceName: log-ls
84   logstashPort: 5044
85   cloudOwner: CloudOwner
86   ecompInstanceId: OOM
87   openStackRegion: RegionOne
88   openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
89   db:
90     userName: rene
91     # userPassword: password
92     # userCredentialsExternalSecret: some-secret
93
94 mariadb-galera:
95   # '&mariadbConfig' means we "store" the values for  later use in the file
96   # with '*mariadbConfig' pointer.
97   config: &mariadbConfig
98     userCredentialsExternalSecret: '{{ include "common.release" . }}-nbi-db-secret'
99     mysqlDatabase: nbi
100   nameOverride: nbi-galera
101   service:
102     name: nbi-galera
103     portName: nbi-galera
104     internalPort: 3306
105   replicaCount: 1
106   persistence:
107     enabled: true
108     mountSubPath: nbi/maria/data
109
110 mariadb-init:
111   config: *mariadbConfig
112   nameOverride: nbi-config
113
114 mongo:
115   nameOverride: nbi-mongo
116   config:
117     dbName: ServiceOrderDB
118   service:
119     name: nbi-mongohost
120     internalPort: 27017
121   nfsprovisionerPrefix: nbi
122   sdnctlPrefix: nbi
123   persistence:
124     mountSubPath: nbi/mongo/data
125     enabled: true
126   disableNfsProvisioner: true
127
128
129 # default number of instances
130 replicaCount: 1
131
132 nodeSelector: {}
133
134 affinity: {}
135
136 # probe configuration parameters
137 liveness:
138   path: /nbi/api/v4/status
139   port: 8443
140   initialDelaySeconds: 180
141   periodSeconds: 30
142   # necessary to disable liveness probe when setting breakpoints
143   # in debugger so K8s doesn't restart unresponsive container
144   enabled: true
145
146 readiness:
147   path: /nbi/api/v4/status
148   port: 8443
149   initialDelaySeconds: 185
150   periodSeconds: 30
151
152 service:
153   type: NodePort
154   portName: api
155   name: nbi
156   nodePort: 74
157   internalPort: 8443
158
159 ingress:
160   enabled: false
161   service:
162     - baseaddr: "nbi.api"
163       name: "nbi"
164       port: 8443
165   config:
166     ssl: "redirect"
167 # Resource Limit flavor -By Default using small
168 flavor: small
169 # Segregation for Different environment (Small and Large)
170 resources:
171   small:
172     limits:
173       cpu: 1
174       memory: 2Gi
175     requests:
176       cpu: 100m
177       memory: 1Gi
178   large:
179     limits:
180       cpu: 2
181       memory: 4Gi
182     requests:
183       cpu: 200m
184       memory: 2Gi
185   unlimited: {}