Merge "[DCAEMOD] Uses new tpls for repos / images"
[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     /opt/app/aaf_config/bin/agent.sh;
83     /opt/app/aaf_config/bin/agent.sh local showpass \
84     {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop
85
86 # flag to enable debugging - application support required
87 debugEnabled: false
88
89 # default number of instances
90 replicaCount: 1
91
92 nodeSelector: {}
93
94 affinity: {}
95
96 # probe configuration parameters
97 liveness:
98   initialDelaySeconds: 10
99   periodSeconds: 10
100   # necessary to disable liveness probe when setting breakpoints
101   # in debugger so K8s doesn't restart unresponsive container
102   enabled: true
103
104 readiness:
105   initialDelaySeconds: 10
106   periodSeconds: 10
107
108 service:
109   type: NodePort
110   name: portal-sdk
111   portName: portal-sdk
112   internalPort: 8443
113   externalPort: 8443
114   nodePort: 12
115
116 mariadb:
117   service:
118     name: portal-db
119   config:
120     # backendDbExternalSecret: some secret
121     backendUserName: portal
122     backendPassword: portal
123 widget:
124   service:
125     name: portal-widget
126 cassandra:
127   service:
128     name: portal-cassandra
129   config:
130     # cassandraExternalSecret: some secret
131     cassandraUsername: root
132     cassandraPassword: Aa123456
133 messageRouter:
134   service:
135     name: message-router
136
137 ingress:
138   enabled: false
139   service:
140     - baseaddr: portal-sdk
141       name: "portal-sdk"
142       port: 8443
143   config:
144     ssl: "redirect"
145
146 # Resource Limit flavor -By Default using small
147 flavor: small
148 # Segregation for Different environment (Small and Large)
149 resources:
150   small:
151     limits:
152       cpu: 600m
153       memory: 1.6Gi
154     requests:
155       cpu: 10m
156       memory: 1.3Gi
157   large:
158     limits:
159       cpu: 8
160       memory: 20Gi
161     requests:
162       cpu: 4
163       memory: 10Gi
164   unlimited: {}