Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / so / components / so-catalog-db-adapter / values.yaml
1 # Copyright © 2018 AT&T USA
2 # Copyright © 2020 Huawei
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 #################################################################
15 # Global configuration defaults.
16 #################################################################
17 global:
18   nodePortPrefix: 302
19   nodePortPrefixExt: 304
20   persistence:
21     mountPath: /dockerdata-nfs
22   app:
23     msoKey: 07a7159d3bf51a0e53be7a8f89699be7
24   mariadbGalera:
25     service: mariadb-galera
26     servicePort: '3306'
27
28 readinessCheck:
29   wait_for:
30     jobs:
31       - '{{ include "common.release" . }}-so-mariadb-config-job'
32
33 #################################################################
34 # Secrets metaconfig
35 #################################################################
36 secrets:
37   - uid: db-user-creds
38     name: '{{ include "common.release" . }}-so-catalog-db-adapter-db-user-creds'
39     type: basicAuth
40     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
41     login: '{{ .Values.db.userName }}'
42     password: '{{ .Values.db.userPassword }}'
43     passwordPolicy: required
44   - uid: db-admin-creds
45     name: '{{ include "common.release" . }}-so-catalog-db-adapter-db-admin-creds'
46     type: basicAuth
47     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
48     login: '{{ .Values.db.adminName }}'
49     password: '{{ .Values.db.adminPassword }}'
50     passwordPolicy: required
51
52 #secretsFilePaths: |
53 #  - 'my file 1'
54 #  - '{{ include "templateThatGeneratesFileName" . }}'
55
56 #################################################################
57 # Application configuration defaults.
58 #################################################################
59 image: onap/so/catalog-db-adapter:1.12.2
60 pullPolicy: Always
61
62 # Local mariadb galera instance default name
63 mariadb-galera:
64   nameOverride: so-mariadb-galera
65   service:
66     internalPort: 3306
67   mariadbOperator:
68     galera:
69       enabled: false
70
71 db:
72   userName: so_user
73   userPassword: so_User123
74   # userCredsExternalSecret: some secret
75   adminName: so_admin
76   adminPassword: so_Admin123
77   # adminCredsExternalSecret: some secret
78
79 mso:
80   adapters:
81     db:
82       auth: Basic YnBlbDpwYXNzd29yZDEk
83
84 replicaCount: 1
85 minReadySeconds: 10
86 containerPort: &containerPort 8082
87 logPath: ./logs/catdb/
88 app: catalog-db-adapter
89 service:
90   type: ClusterIP
91   ports:
92   - port: *containerPort
93     name: http
94 updateStrategy:
95   type: RollingUpdate
96   maxUnavailable: 1
97   maxSurge: 1
98
99 #################################################################
100 # soHelpers part
101 #################################################################
102 soHelpers:
103   containerPort: *containerPort
104
105 # Resource Limit flavor -By Default using small
106 flavor: small
107 # Segregation for Different environment (Small and Large)
108 resources:
109   small:
110     limits:
111       cpu: "1"
112       memory: "1.5Gi"
113     requests:
114       cpu: "0.5"
115       memory: "1.5Gi"
116   large:
117     limits:
118       cpu: "2"
119       memory: "3Gi"
120     requests:
121       cpu: "1"
122       memory: "3Gi"
123   unlimited: {}
124 livenessProbe:
125   path: /manage/health
126   port: 8082
127   scheme: HTTP
128   initialDelaySeconds: 600
129   periodSeconds: 60
130   timeoutSeconds: 10
131   successThreshold: 1
132   failureThreshold: 3
133 ingress:
134   enabled: false
135 serviceMesh:
136   authorizationPolicy:
137     authorizedPrincipals:
138       - serviceAccount: robot-read
139       - serviceAccount: so-bpmn-infra-read
140       - serviceAccount: so-openstack-adapter-read
141       - serviceAccount: so-read
142       - serviceAccount: so-sdc-controller-read
143       - serviceAccount: so-sdnc-adapter-read
144 config:
145   openStackUserName: "vnf_user"
146   openStackRegion: "RegionOne"
147   openStackKeyStoneUrl: "http://1.2.3.4:5000/v2.0"
148   openStackServiceTenantName: "service"
149   openStackEncryptedPasswordHere: "c124921a3a0efbe579782cde8227681e"
150   openStackTenantId: "d570c718cbc545029f40e50b75eb13df"
151   openStackProjectDomainName: "openStackProjectDomainName"
152   openStackUserDomainName: "openStackUserDomainName"
153   # "KEYSTONE" for keystone v2, "KEYSTONE_V3" for keystone v3
154   openStackKeystoneVersion: "KEYSTONE"
155 nodeSelector: {}
156 tolerations: []
157 affinity: {}
158
159 serviceAccount:
160   nameOverride: so-catalog-db-adapter
161   roles:
162     - read