blob: 9f75e4c0374ace9e0f3403ed523c10bf6d035135 [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
seshukm5c924192021-09-17 10:59:15 +053023 aai:
24 enabled: true
sekharhuawei2e799e92020-11-14 17:06:56 +053025#################################################################
26# Secrets metaconfig
27#################################################################
28secrets:
29 - uid: db-user-creds
30 type: basicAuth
31 externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
32 login: '{{ .Values.db.userName }}'
33 password: '{{ .Values.db.userPassword }}'
34 passwordPolicy: required
35 - uid: db-admin-creds
36 type: basicAuth
37 externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
38 login: '{{ .Values.db.adminName }}'
39 password: '{{ .Values.db.adminPassword }}'
40 passwordPolicy: required
41 - uid: server-actuator-creds
42 name: '{{ include "common.release" . }}-so-cnf-actuator-creds'
43 type: basicAuth
44 externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}'
45 login: '{{ .Values.server.actuator.username }}'
46 password: '{{ .Values.server.actuator.password }}'
47 passwordPolicy: required
sekharhuawei2e799e92020-11-14 17:06:56 +053048 - uid: so-aai-creds
49 name: '{{ include "common.release" . }}-so-cnf-aai-creds'
50 type: basicAuth
51 externalSecret: '{{ tpl (default "" .Values.server.aaiCredsExternalSecret) . }}'
52 login: '{{ .Values.server.aai.username }}'
53 password: '{{ .Values.server.aai.password }}'
54 passwordPolicy: required
55 - uid: cnf-adapter-mso-key
56 name: '{{ include "common.release" . }}-so-cnf-mso-key'
57 type: password
58 externalSecret: '{{ tpl (default "" .Values.mso.msoKeySecret) . }}'
59 password: '{{ .Values.mso.msoKey }}'
60#secretsFilePaths: |
61# - 'my file 1'
62# - '{{ include "templateThatGeneratesFileName" . }}'
63#################################################################
64# Application configuration defaults.
65#################################################################
Seshu-Kumar-Mb10781b2022-03-24 08:12:36 +053066image: onap/so/so-cnf-adapter:1.10.0
sekharhuawei2e799e92020-11-14 17:06:56 +053067pullPolicy: Always
Sylvain Desbureauxa2e32752020-12-08 18:03:50 +010068
69readinessCheck:
70 wait_for:
71 jobs:
72 - '{{ include "common.release" . }}-so-mariadb-config-job'
73
sekharhuawei2e799e92020-11-14 17:06:56 +053074db:
75 userName: so_user
76 userPassword: so_User123
77 # userCredsExternalSecret: some secret
78 adminName: so_admin
79 adminPassword: so_Admin123
80 # adminCredsExternalSecret: some secret
81server:
sekharhuawei2e799e92020-11-14 17:06:56 +053082 aai:
83 username: aai@aai.onap.org
84 password: demo123456!
85 auth: ${AAI_AUTH}
86 # aaiCredsExternalSecret: some secret
87 actuator:
88 username: mso_admin
89 password: password1$
90 # actuatorCredsExternalSecret: some secret
91mso:
92 msoKey: 07a7159d3bf51a0e53be7a8f89699be7
93 # msoKeySecret: some secret
94 adapters:
95 requestDb:
96 auth: ${REQUEST_AUTH}
97replicaCount: 1
98minReadySeconds: 10
99containerPort: &containerPort 8090
seshukm65ba2142021-04-01 21:59:10 +0530100logPath: ./logs/cnf-adapter/
sekharhuawei2e799e92020-11-14 17:06:56 +0530101app: cnf-adapter
102service:
103 type: ClusterIP
104 ports:
105 - name: http-api
106 port: *containerPort
107updateStrategy:
108 type: RollingUpdate
109 maxUnavailable: 1
110 maxSurge: 1
Andreas Geisslerad61ccf2023-02-23 09:17:36 +0100111
112#################################################################
113# soHelpers part
114#################################################################
sekharhuawei2e799e92020-11-14 17:06:56 +0530115soHelpers:
sekharhuawei2e799e92020-11-14 17:06:56 +0530116 containerPort: *containerPort
Andreas Geisslerad61ccf2023-02-23 09:17:36 +0100117
sekharhuawei2e799e92020-11-14 17:06:56 +0530118# Resource Limit flavor -By Default using small
119flavor: small
120# Segregation for Different environment (Small and Large)
121resources:
122 small:
123 limits:
124 memory: 4Gi
125 cpu: 2000m
126 requests:
127 memory: 1Gi
128 cpu: 500m
129 large:
130 limits:
131 memory: 8Gi
132 cpu: 4000m
133 requests:
134 memory: 2Gi
135 cpu: 1000m
136 unlimited: {}
137livenessProbe:
138 path: /manage/health
139 port: 8090
140 scheme: HTTP
141 initialDelaySeconds: 600
142 periodSeconds: 60
143 timeoutSeconds: 10
144 successThreshold: 1
145 failureThreshold: 3
146ingress:
147 enabled: false
AndrewLambab2704a2023-04-05 14:45:11 +0100148serviceMesh:
149 authorizationPolicy:
150 authorizedPrincipals:
151 - serviceAccount: so-read
sekharhuawei2e799e92020-11-14 17:06:56 +0530152nodeSelector: {}
153tolerations: []
154affinity: {}
155
farida azmy87f46222021-04-06 15:25:15 +0200156#Pods Service Account
157serviceAccount:
158 nameOverride: so-cnf-adapter
159 roles:
160 - read