[MARIADB] Make the MariaDB service Operator aware
[oom.git] / kubernetes / so / components / so-oof-adapter / values.yaml
1 # Copyright © 2020 Wipro Limited.
2 #
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 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20   nodePortPrefixExt: 304
21   persistence:
22     mountPath: /dockerdata-nfs
23   mariadbGalera:
24     service: mariadb-galera
25     servicePort: '3306'
26
27 # Secrets metaconfig
28 #################################################################
29 db:
30   userName: so_user
31   userPassword: so_User123
32   # userCredsExternalSecret: some secret
33   adminName: so_admin
34   adminPassword: so_Admin123
35   # adminCredsExternalSecret: some secret
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   - uid: oof-adapter-mso-key
50     type: password
51     externalSecret: '{{ tpl (default "" .Values.mso.msoKeySecret) . }}'
52     password: '{{ .Values.mso.msoKey }}'
53   - uid: oof-auth
54     type: basicAuth
55     externalSecret: '{{ tpl (default "" .Values.mso.oof.authSecret) . }}'
56     login: '{{ .Values.mso.oof.login }}'
57     password: '{{ .Values.mso.oof.password }}'
58     passwordPolicy: required
59
60
61 #secretsFilePaths: |
62 #  - 'my file 1'
63 #  - '{{ include "templateThatGeneratesFileName" . }}'
64
65 #################################################################
66 # Application configuration defaults.
67 #################################################################
68 image: onap/so/so-oof-adapter:1.8.3
69 pullPolicy: Always
70
71 mso:
72   msoKey: 07a7159d3bf51a0e53be7a8f89699be7
73   oof:
74     login: test
75     password: testpwd
76
77 replicaCount: 1
78 containerPort: &containerPort 8090
79 minReadySeconds: 10
80 containerPort: *containerPort
81 logPath: ./logs/oof-adapter/
82 app: so-oof-adapter
83 service:
84   type: ClusterIP
85   ports:
86     - name: http
87       port: *containerPort
88 updateStrategy:
89   type: RollingUpdate
90   maxUnavailable: 1
91   maxSurge: 1
92
93 #################################################################
94 # soHelpers part
95 #################################################################
96 soHelpers:
97   containerPort: *containerPort
98
99 # Resource Limit flavor -By Default using small
100 flavor: small
101 # Segregation for Different environment (Small and Large)
102 resources:
103   small:
104     limits:
105       memory: 1Gi
106       cpu: 1
107     requests:
108       memory: 1Gi
109       cpu: 0.5
110   large:
111     limits:
112       memory: 2Gi
113       cpu: 2
114     requests:
115       memory: 2Gi
116       cpu: 1
117   unlimited: {}
118 livenessProbe:
119   path: /manage/health
120   port: *containerPort
121   scheme: HTTP
122   initialDelaySeconds: 600
123   periodSeconds: 60
124   timeoutSeconds: 10
125   successThreshold: 1
126   failureThreshold: 3
127 ingress:
128   enabled: false
129 serviceMesh:
130   authorizationPolicy:
131     authorizedPrincipals:
132       - serviceAccount: so-bpmn-infra-read
133       - serviceAccount: so-read
134 nodeSelector: {}
135 tolerations: []
136 affinity: {}
137
138 #Pods Service Account
139 serviceAccount:
140   nameOverride: so-oof-adapter
141   roles:
142     - read
143
144 #Log configuration
145 log:
146   path: /var/log/onap
147 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'