Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / so / components / so-nssmf-adapter / values.yaml
1 # Copyright © 2020 Huawei Technologies Co., Ltd.
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 # 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 #################################################################
35 # Secrets metaconfig
36 #################################################################
37 secrets:
38   - uid: db-user-creds
39     name: '{{ include "common.release" . }}-so-bpmn-infra-db-user-creds'
40     type: basicAuth
41     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
42     login: '{{ .Values.db.userName }}'
43     password: '{{ .Values.db.userPassword }}'
44     passwordPolicy: required
45   - uid: db-admin-creds
46     name: '{{ include "common.release" . }}-so-bpmn-infra-db-admin-creds'
47     type: basicAuth
48     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
49     login: '{{ .Values.db.adminName }}'
50     password: '{{ .Values.db.adminPassword }}'
51     passwordPolicy: required
52   - uid: server-bpel-creds
53     name: '{{ include "common.release" . }}-so-server-bpel-creds'
54     type: basicAuth
55     externalSecret: '{{ tpl (default "" .Values.server.bpelCredsExternalSecret) . }}'
56     login: '{{ .Values.server.bpel.username }}'
57     password: '{{ .Values.server.bpel.password }}'
58     passwordPolicy: required
59   - uid: server-actuator-creds
60     name: '{{ include "common.release" . }}-so-server-actuator-creds'
61     type: basicAuth
62     externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}'
63     login: '{{ .Values.server.actuator.username }}'
64     password: '{{ .Values.server.actuator.password }}'
65     passwordPolicy: required
66
67 #secretsFilePaths: |
68 #  - 'my file 1'
69 #  - '{{ include "templateThatGeneratesFileName" . }}'
70
71 #################################################################
72 # Application configuration defaults.
73 #################################################################
74 image: onap/so/so-nssmf-adapter:1.9.1
75 pullPolicy: Always
76
77 # Local mariadb galera instance default name
78 mariadb-galera:
79   nameOverride: so-mariadb-galera
80   service:
81     internalPort: 3306
82   mariadbOperator:
83     galera:
84       enabled: false
85
86 db:
87   userName: so_user
88   userPassword: so_User123
89   # userCredsExternalSecret: some secret
90   adminName: so_admin
91   adminPassword: so_Admin123
92   # adminCredsExternalSecret: some secret
93 server:
94   actuator:
95     username: mso_admin
96     password: password1$
97   bpel:
98     username: bpel
99     password: password1$
100 aai:
101   auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586
102 mso:
103   adapters:
104     requestDb:
105       auth: Basic YnBlbDpwYXNzd29yZDEk
106
107 replicaCount: 1
108 minReadySeconds: 10
109 containerPort: &containerPort 8088
110 logPath: ./logs/nssmf-adapter/
111 app: nssmf-adapter
112 service:
113   type: ClusterIP
114   ports:
115     - name: http
116       port: *containerPort
117 updateStrategy:
118   type: RollingUpdate
119   maxUnavailable: 1
120   maxSurge: 1
121
122 #################################################################
123 # soHelpers part
124 #################################################################
125 soHelpers:
126   containerPort: *containerPort
127
128 # Resource Limit flavor -By Default using small
129 flavor: small
130 # Segregation for Different environment (Small and Large)
131 resources:
132   small:
133     limits:
134       cpu: "1"
135       memory: "1Gi"
136     requests:
137       cpu: "0.5"
138       memory: "1Gi"
139   large:
140     limits:
141       cpu: "2"
142       memory: "2Gi"
143     requests:
144       cpu: "1"
145       memory: "2Gi"
146   unlimited: {}
147 livenessProbe:
148   path: /manage/health
149   port: 8088
150   scheme: HTTP
151   initialDelaySeconds: 600
152   periodSeconds: 60
153   timeoutSeconds: 10
154   successThreshold: 1
155   failureThreshold: 3
156 ingress:
157   enabled: false
158 serviceMesh:
159   authorizationPolicy:
160     authorizedPrincipals:
161       - serviceAccount: robot-read
162       - serviceAccount: so-bpmn-infra-read
163       - serviceAccount: so-read
164 nodeSelector: {}
165 tolerations: []
166 affinity: {}
167
168 #Pods Service Account
169 serviceAccount:
170   nameOverride: so-nssmf-adapter
171   roles:
172     - read