Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[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   security:
23     aaf:
24       enabled: false
25   aaf:
26     auth:
27       header: Basic c29Ac28ub25hcC5vcmc6ZGVtbzEyMzQ1Ngo=
28   mariadbGalera:
29     serviceName: mariadb-galera
30     servicePort: '3306'
31
32 readinessCheck:
33   wait_for:
34     jobs:
35       - '{{ include "common.release" . }}-so-mariadb-config-job'
36
37
38 #################################################################
39 # Secrets metaconfig
40 #################################################################
41 secrets:
42   - uid: db-user-creds
43     name: '{{ include "common.release" . }}-so-bpmn-infra-db-user-creds'
44     type: basicAuth
45     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
46     login: '{{ .Values.db.userName }}'
47     password: '{{ .Values.db.userPassword }}'
48     passwordPolicy: required
49   - uid: db-admin-creds
50     name: '{{ include "common.release" . }}-so-bpmn-infra-db-admin-creds'
51     type: basicAuth
52     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
53     login: '{{ .Values.db.adminName }}'
54     password: '{{ .Values.db.adminPassword }}'
55     passwordPolicy: required
56   - uid: server-bpel-creds
57     name: '{{ include "common.release" . }}-so-server-bpel-creds'
58     type: basicAuth
59     externalSecret: '{{ tpl (default "" .Values.server.bpelCredsExternalSecret) . }}'
60     login: '{{ .Values.server.bpel.username }}'
61     password: '{{ .Values.server.bpel.password }}'
62     passwordPolicy: required
63   - uid: server-actuator-creds
64     name: '{{ include "common.release" . }}-so-server-actuator-creds'
65     type: basicAuth
66     externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}'
67     login: '{{ .Values.server.actuator.username }}'
68     password: '{{ .Values.server.actuator.password }}'
69     passwordPolicy: required
70
71 #secretsFilePaths: |
72 #  - 'my file 1'
73 #  - '{{ include "templateThatGeneratesFileName" . }}'
74
75 #################################################################
76 # Application configuration defaults.
77 #################################################################
78 image: onap/so/so-nssmf-adapter:1.9.1
79 pullPolicy: Always
80
81 db:
82   userName: so_user
83   userPassword: so_User123
84   # userCredsExternalSecret: some secret
85   adminName: so_admin
86   adminPassword: so_Admin123
87   # adminCredsExternalSecret: some secret
88 server:
89   actuator:
90     username: mso_admin
91     password: password1$
92   bpel:
93     username: bpel
94     password: password1$
95 aai:
96   auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586
97 mso:
98   adapters:
99     requestDb:
100       auth: Basic YnBlbDpwYXNzd29yZDEk
101
102 replicaCount: 1
103 minReadySeconds: 10
104 containerPort: &containerPort 8088
105 logPath: ./logs/nssmf-adapter/
106 app: nssmf-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 soHelpers:
118   nameOverride: so-nssmf-cert-init
119   certInitializer:
120     nameOverride: so-nssmf-cert-init
121     credsPath: /opt/app/osaaf/local
122   cadi:
123     apiEnforcement: org.onap.so.nssmfAdapterPerm
124   containerPort: *containerPort
125
126 # Resource Limit flavor -By Default using small
127 flavor: small
128 # Segregation for Different environment (Small and Large)
129 resources:
130   small:
131     limits:
132       memory: 4Gi
133       cpu: 2000m
134     requests:
135       memory: 1Gi
136       cpu: 500m
137   large:
138     limits:
139       memory: 8Gi
140       cpu: 4000m
141     requests:
142       memory: 2Gi
143       cpu: 1000m
144   unlimited: {}
145 livenessProbe:
146     path: /manage/health
147     port: 8088
148     scheme: HTTP
149     initialDelaySeconds: 600
150     periodSeconds: 60
151     timeoutSeconds: 10
152     successThreshold: 1
153     failureThreshold: 3
154 ingress:
155   enabled: false
156 nodeSelector: {}
157 tolerations: []
158 affinity: {}
159
160 #Pods Service Account
161 serviceAccount:
162   nameOverride: so-nssmf-adapter
163   roles:
164     - read