blob: edd37382f74e243ea0e5a203757ecafbbae30f04 [file] [log] [blame]
sekharhuawei2e799e92020-11-14 17:06:56 +05301# 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#################################################################
17global:
18 nodePortPrefix: 302
19 nodePortPrefixExt: 304
20 soCryptoImage: sdesbure/so_crypto:latest
21 persistence:
22 mountPath: /dockerdata-nfs
23 security:
24 aaf:
25 enabled: false
26 aaf:
27 auth:
28 header: ${AAF_AUTH}
29#################################################################
30# Secrets metaconfig
31#################################################################
32secrets:
33 - uid: db-user-creds
34 type: basicAuth
35 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
36 login: '{{ .Values.db.userName }}'
37 password: '{{ .Values.db.userPassword }}'
38 passwordPolicy: required
39 - uid: db-admin-creds
40 type: basicAuth
41 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
42 login: '{{ .Values.db.adminName }}'
43 password: '{{ .Values.db.adminPassword }}'
44 passwordPolicy: required
45 - uid: server-actuator-creds
46 name: '{{ include "common.release" . }}-so-cnf-actuator-creds'
47 type: basicAuth
48 externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}'
49 login: '{{ .Values.server.actuator.username }}'
50 password: '{{ .Values.server.actuator.password }}'
51 passwordPolicy: required
52 - uid: so-aaf-creds
53 name: '{{ include "common.release" . }}-so-cnf-aaf-creds'
54 type: basicAuth
55 externalSecret: '{{ tpl (default "" .Values.server.aafCredsExternalSecret) . }}'
56 login: '{{ .Values.server.aaf.username }}'
57 password: '{{ .Values.server.aaf.password }}'
58 passwordPolicy: required
59 - uid: so-aai-creds
60 name: '{{ include "common.release" . }}-so-cnf-aai-creds'
61 type: basicAuth
62 externalSecret: '{{ tpl (default "" .Values.server.aaiCredsExternalSecret) . }}'
63 login: '{{ .Values.server.aai.username }}'
64 password: '{{ .Values.server.aai.password }}'
65 passwordPolicy: required
66 - uid: cnf-adapter-mso-key
67 name: '{{ include "common.release" . }}-so-cnf-mso-key'
68 type: password
69 externalSecret: '{{ tpl (default "" .Values.mso.msoKeySecret) . }}'
70 password: '{{ .Values.mso.msoKey }}'
71#secretsFilePaths: |
72# - 'my file 1'
73# - '{{ include "templateThatGeneratesFileName" . }}'
74#################################################################
75# Application configuration defaults.
76#################################################################
77image: onap/so/mso-cnf-adapter:1.7.1
78pullPolicy: Always
Sylvain Desbureauxa2e32752020-12-08 18:03:50 +010079
80readinessCheck:
81 wait_for:
82 jobs:
83 - '{{ include "common.release" . }}-so-mariadb-config-job'
84
sekharhuawei2e799e92020-11-14 17:06:56 +053085db:
86 userName: so_user
87 userPassword: so_User123
88 # userCredsExternalSecret: some secret
89 adminName: so_admin
90 adminPassword: so_Admin123
91 # adminCredsExternalSecret: some secret
92server:
93 aaf:
94 username: so@so.onap.org
95 password: demo123456
96 # aafCredsExternalSecret: some secret
97 aai:
98 username: aai@aai.onap.org
99 password: demo123456!
100 auth: ${AAI_AUTH}
101 # aaiCredsExternalSecret: some secret
102 actuator:
103 username: mso_admin
104 password: password1$
105 # actuatorCredsExternalSecret: some secret
106mso:
107 msoKey: 07a7159d3bf51a0e53be7a8f89699be7
108 # msoKeySecret: some secret
109 adapters:
110 requestDb:
111 auth: ${REQUEST_AUTH}
112replicaCount: 1
113minReadySeconds: 10
114containerPort: &containerPort 8090
115logPath: ./logs/cnf/
116app: cnf-adapter
117service:
118 type: ClusterIP
119 ports:
120 - name: http-api
121 port: *containerPort
122updateStrategy:
123 type: RollingUpdate
124 maxUnavailable: 1
125 maxSurge: 1
126soHelpers:
127 nameOverride: so-cnf-cert-init
128 certInitializer:
129 nameOverride: so-cnf-cert-init
130 credsPath: /opt/app/osaaf/local
131 cadi:
132 apiEnforcement: org.onap.so.openStackAdapterPerm
133 containerPort: *containerPort
134# Resource Limit flavor -By Default using small
135flavor: small
136# Segregation for Different environment (Small and Large)
137resources:
138 small:
139 limits:
140 memory: 4Gi
141 cpu: 2000m
142 requests:
143 memory: 1Gi
144 cpu: 500m
145 large:
146 limits:
147 memory: 8Gi
148 cpu: 4000m
149 requests:
150 memory: 2Gi
151 cpu: 1000m
152 unlimited: {}
153livenessProbe:
154 path: /manage/health
155 port: 8090
156 scheme: HTTP
157 initialDelaySeconds: 600
158 periodSeconds: 60
159 timeoutSeconds: 10
160 successThreshold: 1
161 failureThreshold: 3
162ingress:
163 enabled: false
164nodeSelector: {}
165tolerations: []
166affinity: {}
167