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