[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / so / components / so-request-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   repository: nexus3.onap.org:10001
21   readinessImage: onap/oom/readiness:3.0.1
22   aafAgentImage: onap/aaf/aaf_agent:2.1.20
23   envsubstImage: dibi/envsubst
24   persistence:
25     mountPath: /dockerdata-nfs
26   security:
27     aaf:
28       enabled: false
29   aaf:
30     auth:
31       header: Basic c29Ac28ub25hcC5vcmc6ZGVtbzEyMzQ1Ngo=
32   mariadbGalera:
33     serviceName: mariadb-galera
34     servicePort: '3306'
35
36 readinessCheck:
37   wait_for:
38     - so-mariadb-config
39
40 #################################################################
41 # Secrets metaconfig
42 #################################################################
43 secrets:
44   - uid: db-user-creds
45     type: basicAuth
46     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
47     login: '{{ .Values.db.userName }}'
48     password: '{{ .Values.db.userPassword }}'
49     passwordPolicy: required
50   - uid: 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 repository: nexus3.onap.org:10001
65 image: onap/so/request-db-adapter:1.7.10
66 pullPolicy: Always
67
68 db:
69   userName: so_user
70   userPassword: so_User123
71   # userCredsExternalSecret: some secret
72   adminName: so_admin
73   adminPassword: so_Admin123
74   # adminCredsExternalSecret: some secret
75
76 mso:
77   adapters:
78     requestDb:
79       auth: Basic YnBlbDpwYXNzd29yZDEk
80
81 replicaCount: 1
82 minReadySeconds: 10
83 containerPort: &containerPort 8083
84 logPath: ./logs/reqdb/
85 app: request-db-adapter
86 service:
87     type: ClusterIP
88     internalPort: *containerPort
89     externalPort: *containerPort
90     portName: so-reqdb-port
91 updateStrategy:
92     type: RollingUpdate
93     maxUnavailable: 1
94     maxSurge: 1
95
96 #################################################################
97 # soHelpers part
98 #################################################################
99 soHelpers:
100   nameOverride: so-requestdb-cert-init
101   certInitializer:
102     nameOverride: so-requestdb-cert-init
103     credsPath: /opt/app/osaaf/local
104   cadi:
105     apiEnforcement: org.onap.so.requestDbAdapterPerm
106   containerPort: *containerPort
107
108 # Resource Limit flavor -By Default using small
109 flavor: small
110 # Segregation for Different environment (Small and Large)
111 resources:
112   small:
113     limits:
114       memory: 4Gi
115       cpu: 2000m
116     requests:
117       memory: 1Gi
118       cpu: 500m
119   large:
120     limits:
121       memory: 8Gi
122       cpu: 4000m
123     requests:
124       memory: 2Gi
125       cpu: 1000m
126   unlimited: {}
127 livenessProbe:
128     path: /manage/health
129     port: 8083
130     scheme: HTTP
131     initialDelaySeconds: 600
132     periodSeconds: 60
133     timeoutSeconds: 10
134     successThreshold: 1
135     failureThreshold: 3
136 ingress:
137   enabled: false
138 nodeSelector: {}
139 tolerations: []
140 affinity: {}