[MARIADB][COMMON] Add support for mariadb-operator
[oom.git] / kubernetes / so / components / so-etsi-sol005-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     service: mariadb-galera-primary
24     servicePort: '3306'
25
26 readinessCheck:
27   wait_for:
28     jobs:
29       - '{{ include "common.release" . }}-so-mariadb-config-job'
30
31 #################################################################
32 # Secrets metaconfig
33 #################################################################
34 secrets:
35   - uid: db-user-creds
36     type: basicAuth
37     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
38     login: '{{ .Values.db.userName }}'
39     password: '{{ .Values.db.userPassword }}'
40     passwordPolicy: required
41   - uid: db-admin-creds
42     type: basicAuth
43     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
44     login: '{{ .Values.db.adminName }}'
45     password: '{{ .Values.db.adminPassword }}'
46     passwordPolicy: required
47
48 #secretsFilePaths: |
49 #  - 'my file 1'
50 #  - '{{ include "templateThatGeneratesFileName" . }}'
51
52 #################################################################
53 # Application configuration defaults.
54 #################################################################
55 image: onap/so/so-etsi-sol005-adapter:1.9.0
56 pullPolicy: Always
57
58 db:
59   userName: so_user
60   userPassword: so_User123
61   # userCredsExternalSecret: some secret
62   adminName: so_admin
63   adminPassword: so_Admin123
64   # adminCredsExternalSecret: some secret
65
66 mso:
67   adapters:
68     requestDb:
69       auth: Basic YnBlbDpwYXNzd29yZDEk
70
71 replicaCount: 1
72 minReadySeconds: 10
73 containerPort: &containerPort 8084
74 logPath: ./logs/etsi-sol005-adapter/
75 app: etsi-sol005-adapter
76 service:
77   type: ClusterIP
78   ports:
79   - port: *containerPort
80     name: http
81 updateStrategy:
82   type: RollingUpdate
83   maxUnavailable: 1
84   maxSurge: 1
85
86 #################################################################
87 # soHelpers part
88 #################################################################
89 soHelpers:
90   containerPort: *containerPort
91
92 # Resource Limit flavor -By Default using small
93 flavor: small
94 # Segregation for Different environment (Small and Large)
95 resources:
96   small:
97     limits:
98       memory: 1Gi
99       cpu: 999
100     requests:
101       memory: 1Gi
102       cpu: 0.5
103   large:
104     limits:
105       memory: 2Gi
106       cpu: 999
107     requests:
108       memory: 2Gi
109       cpu: 1
110   unlimited: {}
111 livenessProbe:
112   path: /manage/health
113   port: 8084
114   scheme: HTTP
115   initialDelaySeconds: 600
116   periodSeconds: 60
117   timeoutSeconds: 10
118   successThreshold: 1
119   failureThreshold: 3
120 ingress:
121   enabled: false
122 serviceMesh:
123   authorizationPolicy:
124     authorizedPrincipals:
125       - serviceAccount: robot-read
126       - serviceAccount: so-bpmn-infra-read
127       - serviceAccount: so-read
128 nodeSelector: {}
129 tolerations: []
130 affinity: {}
131
132 #Pods Service Account
133 serviceAccount:
134   nameOverride: so-etsi-sol005-adapter
135   roles:
136     - read