Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / portal / components / portal-sdk / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018, 2020 AT&T
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   env:
21     tomcatDir: "/usr/local/tomcat"
22   nodePortPrefix: 302
23   persistence: {}
24   #AAF service
25   aafEnabled: true
26
27 ################################################################
28 # Secrets metaconfig
29 #################################################################
30
31 secrets:
32   - uid: portal-cass
33     type: basicAuth
34     externalSecret: '{{ tpl (default "" .Values.cassandra.config.cassandraExternalSecret) . }}'
35     login: '{{ .Values.cassandra.config.cassandraUsername }}'
36     password: '{{ .Values.cassandra.config.cassandraPassword }}'
37     passwordPolicy: required
38   - uid: portal-backend-db
39     type: basicAuth
40     externalSecret: '{{ tpl (default "" .Values.mariadb.config.backendDbExternalSecret) . }}'
41     login: '{{ .Values.mariadb.config.backendUserName }}'
42     password: '{{ .Values.mariadb.config.backendPassword }}'
43     passwordPolicy: required
44   - uid: cipher-enc-key
45     type: password
46     externalSecret: '{{ .Values.config.cipherEncKeyExternalSecret}}'
47     password: '{{ .Values.config.cipherEncKey }}'
48     passwordPolicy: required
49
50 #################################################################
51 # Application configuration defaults.
52 #################################################################
53
54 # application image
55 image: onap/portal-sdk:3.4.2
56 pullPolicy: Always
57
58 # application configuration
59 config:
60   # cipherEncKeyExternalSecret: some secret
61   cipherEncKey: AGLDdG4D04BKm2IxIWEr8o==
62
63
64 #AAF local config
65 aafURL: https://aaf-service:8100/authz/
66 certInitializer:
67   nameOverride: portal-sdk-cert-initializer
68   aafDeployFqi: deployer@people.osaaf.org
69   aafDeployPass: demo123456!
70   fqdn: portal
71   fqi: portal@portal.onap.org
72   public_fqdn: portal.onap.org
73   cadi_latitude: "38.0"
74   cadi_longitude: "-72.0"
75   credsPath: /opt/app/osaaf/local
76   app_ns: org.osaaf.aaf
77   permission_user: 1000
78   permission_group: 999
79   keystoreFile: "org.onap.portal.p12"
80   truststoreFile: "org.onap.portal.trust.jks"
81   aaf_add_config: |
82     echo "cadi_truststore_password=$cadi_truststore_password" > {{ .Values.credsPath }}/mycreds.prop
83     echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" >> {{ .Values.credsPath }}/mycreds.prop
84
85 # flag to enable debugging - application support required
86 debugEnabled: false
87
88 # default number of instances
89 replicaCount: 1
90
91 nodeSelector: {}
92
93 affinity: {}
94
95 # probe configuration parameters
96 liveness:
97   initialDelaySeconds: 10
98   periodSeconds: 10
99   # necessary to disable liveness probe when setting breakpoints
100   # in debugger so K8s doesn't restart unresponsive container
101   enabled: true
102
103 readiness:
104   initialDelaySeconds: 10
105   periodSeconds: 10
106
107 service:
108   type: NodePort
109   name: portal-sdk
110   portName: portal-sdk
111   internalPort: 8443
112   externalPort: 8443
113   nodePort: 12
114
115 mariadb:
116   service:
117     name: portal-db
118   config:
119     # backendDbExternalSecret: some secret
120     backendUserName: portal
121     backendPassword: portal
122 widget:
123   service:
124     name: portal-widget
125 cassandra:
126   service:
127     name: portal-cassandra
128   config:
129     # cassandraExternalSecret: some secret
130     cassandraUsername: root
131     cassandraPassword: Aa123456
132 messageRouter:
133   service:
134     name: message-router
135
136 ingress:
137   enabled: false
138   service:
139     - baseaddr: portal-sdk
140       name: "portal-sdk"
141       port: 8443
142   config:
143     ssl: "redirect"
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       cpu: 600m
152       memory: 1.6Gi
153     requests:
154       cpu: 10m
155       memory: 1.3Gi
156   large:
157     limits:
158       cpu: 8
159       memory: 20Gi
160     requests:
161       cpu: 4
162       memory: 10Gi
163   unlimited: {}
164
165 # Log configuration
166 log:
167   path: /var/log/onap
168 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
169 #Pods Service Account
170 serviceAccount:
171   nameOverride: portal-sdk
172   roles:
173     - read