Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / so / components / so-sdnc-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   #This configuration specifies Service and port for SDNC OAM interface
23   sdncOamService: sdnc-oam
24   sdncOamPort: 8282
25   mariadbGalera:
26     # flag to enable the DB creation via mariadb-operator
27     useOperator: true
28     service: mariadb-galera
29     servicePort: '3306'
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   - uid: sdnc-adapter-mso-key
48     name: '{{ include "common.release" . }}-so-sdnc-mso-key'
49     type: password
50     externalSecret: '{{ tpl (default "" .Values.mso.msoKeySecret) . }}'
51     password: '{{ .Values.mso.msoKey }}'
52   - uid: sdnc-adapter-mso-auth
53     name: '{{ include "common.release" . }}-so-sdnc-mso-auth'
54     type: password
55     externalSecret: '{{ tpl (default "" .Values.mso.authSecret) . }}'
56     password: '{{ .Values.mso.auth }}'
57 #secretsFilePaths: |
58 #  - 'my file 1'
59 #  - '{{ include "templateThatGeneratesFileName" . }}'
60
61 #################################################################
62 # Application configuration defaults.
63 #################################################################
64 image: onap/so/sdnc-adapter:1.12.2
65 pullPolicy: Always
66
67 org:
68   onap:
69     so:
70       adapters:
71         sdnc:
72           bpelauth: 4C18603C5AE7E3A42A6CED95CDF9C0BA9B2109B3725747662E5D34E5FDF63DA9ADEBB08185098F14699195FDE9475100
73           sdncauth: ED07A7EE5F099FA53369C3DF2240AD68A00154676EEDBC6F8C16BAA83B1912941B8941ABD48683D2C1072DA7040659692DE936A59BBF42A038CF71DE67B4A375190071EC76EA657801B033C135
74           network:
75             encryptionKey: 07a7159d3bf51a0e53be7a8f89699be7
76 mso:
77   msoKey: 07a7159d3bf51a0e53be7a8f89699be7
78   #msoKeySecret: some secret
79   auth: BEA8637716A7EB617DF472BA6552D22F68C1CB17B0D094D77DDA562F4ADAAC4457CAB848E1A4
80   #authSecret: some secret
81   adapters:
82     requestDb:
83       auth: Basic YnBlbDpwYXNzd29yZDEk
84
85 # Local mariadb galera instance default name
86 mariadb-galera:
87   nameOverride: so-mariadb-galera
88   service:
89     internalPort: 3306
90   mariadbOperator:
91     galera:
92       enabled: false
93
94 db:
95   userName: so_user
96   userPassword: so_User123
97   # userCredsExternalSecret: some secret
98   adminName: so_admin
99   adminPassword: so_Admin123
100   # adminCredsExternalSecret: some secret
101
102 replicaCount: 1
103 minReadySeconds: 10
104 containerPort: &containerPort 8086
105 logPath: ./logs/sdnc/
106 app: sdnc-adapter
107 service:
108   type: ClusterIP
109   ports:
110     - name: http
111       port: *containerPort
112 updateStrategy:
113   type: RollingUpdate
114   maxUnavailable: 1
115   maxSurge: 1
116
117 #################################################################
118 # soHelpers part
119 #################################################################
120 soHelpers:
121   containerPort: *containerPort
122
123 # Resource Limit flavor -By Default using small
124 flavor: small
125 # Segregation for Different environment (Small and Large)
126 resources:
127   small:
128     limits:
129       cpu: "1"
130       memory: "1.5Gi"
131     requests:
132       cpu: "0.5"
133       memory: "1.5Gi"
134   large:
135     limits:
136       cpu: "2"
137       memory: "3Gi"
138     requests:
139       cpu: "1"
140       memory: "3Gi"
141   unlimited: {}
142 livenessProbe:
143   path: /manage/health
144   port: 8086
145   scheme: HTTP
146   initialDelaySeconds: 600
147   periodSeconds: 60
148   timeoutSeconds: 10
149   successThreshold: 1
150   failureThreshold: 3
151 ingress:
152   enabled: false
153 serviceMesh:
154   authorizationPolicy:
155     authorizedPrincipals:
156       - serviceAccount: robot-read
157       - serviceAccount: so-bpmn-infra-read
158       - serviceAccount: so-read
159 nodeSelector: {}
160 tolerations: []
161 affinity: {}
162
163 #Pods Service Account
164 serviceAccount:
165   nameOverride: so-sdnc-adapter
166   roles:
167     - read
168
169 #Logs configuration
170 log:
171   path: /var/log/onap
172 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'