Merge "[AAI] Add model-loader tracing config"
[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   persistence:
21     mountPath: /dockerdata-nfs
22   mariadbGalera:
23     # flag to enable the DB creation via mariadb-operator
24     useOperator: true
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     type: basicAuth
39     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
40     login: '{{ .Values.db.userName }}'
41     password: '{{ .Values.db.userPassword }}'
42     passwordPolicy: required
43   - uid: db-admin-creds
44     type: basicAuth
45     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
46     login: '{{ .Values.db.adminName }}'
47     password: '{{ .Values.db.adminPassword }}'
48     passwordPolicy: required
49
50 #secretsFilePaths: |
51 #  - 'my file 1'
52 #  - '{{ include "templateThatGeneratesFileName" . }}'
53
54 #################################################################
55 # Application configuration defaults.
56 #################################################################
57 image: onap/so/request-db-adapter:1.12.2
58 pullPolicy: Always
59
60 # Local mariadb galera instance default name
61 mariadb-galera:
62   nameOverride: so-mariadb-galera
63   service:
64     internalPort: 3306
65   mariadbOperator:
66     galera:
67       enabled: false
68
69 db:
70   userName: so_user
71   userPassword: so_User123
72   # userCredsExternalSecret: some secret
73   adminName: so_admin
74   adminPassword: so_Admin123
75   # adminCredsExternalSecret: some secret
76
77 mso:
78   adapters:
79     requestDb:
80       auth: Basic YnBlbDpwYXNzd29yZDEk
81
82 replicaCount: 1
83 minReadySeconds: 10
84 containerPort: &containerPort 8083
85 logPath: ./logs/reqdb/
86 app: request-db-adapter
87 service:
88   type: ClusterIP
89   ports:
90     - name: http
91       port: *containerPort
92 updateStrategy:
93   type: RollingUpdate
94   maxUnavailable: 1
95   maxSurge: 1
96
97 #################################################################
98 # soHelpers part
99 #################################################################
100 soHelpers:
101   containerPort: *containerPort
102
103 # Resource Limit flavor -By Default using small
104 flavor: small
105 # Segregation for Different environment (Small and Large)
106 resources:
107   small:
108     limits:
109       cpu: "1"
110       memory: "1.5Gi"
111     requests:
112       cpu: "0.5"
113       memory: "1.5Gi"
114   large:
115     limits:
116       cpu: "2"
117       memory: "3Gi"
118     requests:
119       cpu: "1"
120       memory: "3Gi"
121   unlimited: {}
122 livenessProbe:
123   path: /manage/health
124   port: 8083
125   scheme: HTTP
126   initialDelaySeconds: 600
127   periodSeconds: 60
128   timeoutSeconds: 10
129   successThreshold: 1
130   failureThreshold: 3
131 ingress:
132   enabled: false
133 serviceMesh:
134   authorizationPolicy:
135     authorizedPrincipals:
136       - serviceAccount: robot-read
137       - serviceAccount: so-admin-cockpit-read
138       - serviceAccount: so-bpmn-infra-read
139       - serviceAccount: so-etsi-sol005-adapter-read
140       - serviceAccount: so-nssmf-adapter-read
141       - serviceAccount: so-openstack-adapter-read
142       - serviceAccount: so-read
143       - serviceAccount: so-sdc-controller-read
144 nodeSelector: {}
145 tolerations: []
146 affinity: {}
147
148 #Pods Service Account
149 serviceAccount:
150   nameOverride: so-request-db-adapter
151   roles:
152     - read