[OOM] Fixing k8s ServiceAccounts
[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   mariadbGalera: &mariadbGalera
22     #This flag allows SO to instantiate its own mariadb-galera cluster
23     #When changing it to "true", also set "globalCluster: false"
24     #as the dependency check will not work otherwise (Chart.yaml)
25     localCluster: false
26     globalCluster: true
27     service: mariadb-galera
28     internalPort: 3306
29     nameOverride: mariadb-galera
30   msbEnabled: false
31
32 #################################################################
33 # Secrets metaconfig
34 #################################################################
35 secrets:
36   - uid: nbi-db-secret
37     name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret'
38     type: basicAuth
39     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
40     login: '{{ .Values.config.db.userName }}'
41     password: '{{ .Values.config.db.userPassword }}'
42
43 subChartsOnly:
44   enabled: true
45
46 # application image
47 repository: nexus3.onap.org:10001
48 image: onap/externalapi/nbi:10.0.0
49 pullPolicy: IfNotPresent
50 sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
51 aai_authorization: Basic QUFJOkFBSQ==
52 so_authorization:
53
54 # application configuration
55 config:
56   loglevel: INFO
57   logstashServiceName: log-ls
58   logstashPort: 5044
59   cloudOwner: CloudOwner
60   k8sCloudRegionId: k8sregionfour
61   k8sCloudOwner: k8scloudowner4
62   ecompInstanceId: OOM
63   openStackRegion: RegionOne
64   openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
65   db:
66     userName: rene
67     # userPassword: password
68     # userCredentialsExternalSecret: some-secret
69
70 mariadb-galera:
71   db:
72     externalSecret: *dbUserSecretName
73     name: &mysqlDbName nbi
74   service:
75     name: nbi-galera
76     portName: nbi-galera
77     internalPort: 3306
78   nameOverride: &nbi-galera nbi-galera
79   replicaCount: 1
80   persistence:
81     enabled: true
82     mountSubPath: nbi/maria/data
83   serviceAccount:
84     nameOverride: *nbi-galera
85
86 mariadb-init:
87   config:
88     userCredentialsExternalSecret: *dbUserSecretName
89     mysqlDatabase: *mysqlDbName
90   nameOverride: nbi-config
91   serviceAccount:
92     nameOverride: nbi-config
93
94 mongo:
95   nameOverride: nbi-mongo
96   config:
97     dbName: ServiceOrderDB
98   service:
99     name: nbi-mongohost
100     internalPort: 27017
101   nfsprovisionerPrefix: nbi
102   sdnctlPrefix: nbi
103   persistence:
104     mountSubPath: nbi/mongo/data
105     enabled: true
106   disableNfsProvisioner: true
107
108
109 # default number of instances
110 replicaCount: 1
111
112 nodeSelector: {}
113
114 affinity: {}
115
116 # probe configuration parameters
117 liveness:
118   path: /nbi/api/v4/status
119   initialDelaySeconds: 180
120   periodSeconds: 30
121   # necessary to disable liveness probe when setting breakpoints
122   # in debugger so K8s doesn't restart unresponsive container
123   enabled: true
124
125 readiness:
126   path: /nbi/api/v4/status
127   initialDelaySeconds: 185
128   periodSeconds: 30
129
130 service:
131   type: NodePort
132   portName: api
133   name: nbi
134   internalPort: 8080
135   ports:
136     - name: http
137       port: 8080
138       nodePort: '74'
139
140 ingress:
141   enabled: false
142   service:
143     - baseaddr: "nbi-api"
144       name: "nbi"
145       port: 8080
146   config:
147     ssl: "redirect"
148 # Resource Limit flavor -By Default using small
149 flavor: small
150 # Segregation for Different environment (Small and Large)
151 resources:
152   small:
153     limits:
154       cpu: 999
155       memory: 1Gi
156     requests:
157       cpu: 0.5
158       memory: 1Gi
159   large:
160     limits:
161       cpu: 999
162       memory: 2Gi
163     requests:
164       cpu: 1
165       memory: 2Gi
166   unlimited: {}
167
168 #Pods Service Account
169 serviceAccount:
170   nameOverride: nbi
171   roles:
172     - read