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