868653b6cc8eff6c3f350d511b227411be5220d0
[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     serviceName: 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.11.0
60 pullPolicy: Always
61
62 db:
63   userName: so_user
64   userPassword: so_User123
65   # userCredsExternalSecret: some secret
66   adminName: so_admin
67   adminPassword: so_Admin123
68   # adminCredsExternalSecret: some secret
69
70 mso:
71   adapters:
72     db:
73       auth: Basic YnBlbDpwYXNzd29yZDEk
74
75 replicaCount: 1
76 minReadySeconds: 10
77 containerPort: &containerPort 8082
78 logPath: ./logs/catdb/
79 app: catalog-db-adapter
80 service:
81   type: ClusterIP
82   ports:
83   - port: *containerPort
84     name: http
85 updateStrategy:
86   type: RollingUpdate
87   maxUnavailable: 1
88   maxSurge: 1
89
90 #################################################################
91 # soHelpers part
92 #################################################################
93 soHelpers:
94   containerPort: *containerPort
95
96 # Resource Limit flavor -By Default using small
97 flavor: small
98 # Segregation for Different environment (Small and Large)
99 resources:
100   small:
101     limits:
102       memory: 4Gi
103       cpu: 2000m
104     requests:
105       memory: 1Gi
106       cpu: 500m
107   large:
108     limits:
109       memory: 8Gi
110       cpu: 4000m
111     requests:
112       memory: 2Gi
113       cpu: 1000m
114   unlimited: {}
115 livenessProbe:
116   path: /manage/health
117   port: 8082
118   scheme: HTTP
119   initialDelaySeconds: 600
120   periodSeconds: 60
121   timeoutSeconds: 10
122   successThreshold: 1
123   failureThreshold: 3
124 ingress:
125   enabled: false
126 serviceMesh:
127   authorizationPolicy:
128     authorizedPrincipals:
129       - serviceAccount: robot-read
130       - serviceAccount: so-bpmn-infra-read
131       - serviceAccount: so-openstack-adapter-read
132       - serviceAccount: so-read
133       - serviceAccount: so-sdc-controller-read
134       - serviceAccount: so-sdnc-adapter-read
135 config:
136   openStackUserName: "vnf_user"
137   openStackRegion: "RegionOne"
138   openStackKeyStoneUrl: "http://1.2.3.4:5000/v2.0"
139   openStackServiceTenantName: "service"
140   openStackEncryptedPasswordHere: "c124921a3a0efbe579782cde8227681e"
141   openStackTenantId: "d570c718cbc545029f40e50b75eb13df"
142   openStackProjectDomainName: "openStackProjectDomainName"
143   openStackUserDomainName: "openStackUserDomainName"
144   # "KEYSTONE" for keystone v2, "KEYSTONE_V3" for keystone v3
145   openStackKeystoneVersion: "KEYSTONE"
146 nodeSelector: {}
147 tolerations: []
148 affinity: {}
149
150 serviceAccount:
151   nameOverride: so-catalog-db-adapter
152   roles:
153     - read