Merge "[DCAEMOD] Uses new tpls for repos / images"
[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   security:
23     aaf:
24       enabled: false
25   aaf:
26     auth:
27       header: Basic c29Ac28ub25hcC5vcmc6ZGVtbzEyMzQ1Ngo=
28   app:
29     msoKey: 07a7159d3bf51a0e53be7a8f89699be7
30   mariadbGalera:
31     serviceName: mariadb-galera
32     servicePort: '3306'
33
34 readinessCheck:
35   wait_for:
36     - so-mariadb-config
37
38 #################################################################
39 # Secrets metaconfig
40 #################################################################
41 secrets:
42   - uid: db-user-creds
43     name: '{{ include "common.release" . }}-so-catalog-db-adapter-db-user-creds'
44     type: basicAuth
45     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
46     login: '{{ .Values.db.userName }}'
47     password: '{{ .Values.db.userPassword }}'
48     passwordPolicy: required
49   - uid: db-admin-creds
50     name: '{{ include "common.release" . }}-so-catalog-db-adapter-db-admin-creds'
51     type: basicAuth
52     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
53     login: '{{ .Values.db.adminName }}'
54     password: '{{ .Values.db.adminPassword }}'
55     passwordPolicy: required
56
57 #secretsFilePaths: |
58 #  - 'my file 1'
59 #  - '{{ include "templateThatGeneratesFileName" . }}'
60
61 #################################################################
62 # Application configuration defaults.
63 #################################################################
64 image: onap/so/catalog-db-adapter:1.7.10
65 pullPolicy: Always
66
67 db:
68   userName: so_user
69   userPassword: so_User123
70   # userCredsExternalSecret: some secret
71   adminName: so_admin
72   adminPassword: so_Admin123
73   # adminCredsExternalSecret: some secret
74
75 mso:
76   adapters:
77     db:
78       auth: Basic YnBlbDpwYXNzd29yZDEk
79
80 replicaCount: 1
81 minReadySeconds: 10
82 containerPort: &containerPort 8082
83 logPath: ./logs/catdb/
84 app: catalog-db-adapter
85 service:
86     type: ClusterIP
87     internalPort: *containerPort
88     externalPort: *containerPort
89     portName: so-catdb-port
90 updateStrategy:
91     type: RollingUpdate
92     maxUnavailable: 1
93     maxSurge: 1
94
95 #################################################################
96 # soHelper part
97 #################################################################
98 soHelpers:
99   nameOverride: so-catalogdb-cert-init
100   certInitializer:
101     nameOverride: so-catalogdb-cert-init
102     credsPath: /opt/app/osaaf/local
103   cadi:
104     apiEnforcement: org.onap.so.catalogDbAdapterPerm
105   containerPort: *containerPort
106
107 # Resource Limit flavor -By Default using small
108 flavor: small
109 # Segregation for Different environment (Small and Large)
110 resources:
111   small:
112     limits:
113       memory: 4Gi
114       cpu: 2000m
115     requests:
116       memory: 1Gi
117       cpu: 500m
118   large:
119     limits:
120       memory: 8Gi
121       cpu: 4000m
122     requests:
123       memory: 2Gi
124       cpu: 1000m
125   unlimited: {}
126 livenessProbe:
127     path: /manage/health
128     port: 8082
129     scheme: HTTP
130     initialDelaySeconds: 600
131     periodSeconds: 60
132     timeoutSeconds: 10
133     successThreshold: 1
134     failureThreshold: 3
135 ingress:
136   enabled: false
137 config:
138   openStackUserName: "vnf_user"
139   openStackRegion: "RegionOne"
140   openStackKeyStoneUrl: "http://1.2.3.4:5000/v2.0"
141   openStackServiceTenantName: "service"
142   openStackEncryptedPasswordHere: "c124921a3a0efbe579782cde8227681e"
143   openStackTenantId: "d570c718cbc545029f40e50b75eb13df"
144   openStackProjectDomainName: "openStackProjectDomainName"
145   openStackUserDomainName: "openStackUserDomainName"
146   # "KEYSTONE" for keystone v2, "KEYSTONE_V3" for keystone v3
147   openStackKeystoneVersion: "KEYSTONE"
148 nodeSelector: {}
149 tolerations: []
150 affinity: {}