Merge "[DCAEMOD] Uses new tpls for repos / images"
[oom.git] / kubernetes / portal / components / portal-app / 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   #AAF service
24   aafEnabled: true
25
26 ################################################################
27 # Secrets metaconfig
28 #################################################################
29
30 secrets:
31   - uid: portal-cass
32     type: basicAuth
33     externalSecret: '{{ tpl (default "" .Values.cassandra.config.cassandraExternalSecret) . }}'
34     login: '{{ .Values.cassandra.config.cassandraUsername }}'
35     password: '{{ .Values.cassandra.config.cassandraPassword }}'
36     passwordPolicy: required
37   - uid: cipher-enc-key
38     type: password
39     externalSecret: '{{ .Values.config.cipherEncKeyExternalSecret}}'
40     password: '{{ .Values.config.cipherEncKey }}'
41     passwordPolicy: required
42   - uid: portal-backend-db
43     type: basicAuth
44     externalSecret: '{{ tpl (default "" .Values.mariadb.config.backendDbExternalSecret) . }}'
45     login: '{{ .Values.mariadb.config.backendUserName }}'
46     password: '{{ .Values.mariadb.config.backendPassword }}'
47     passwordPolicy: required
48
49 #################################################################
50 # Application configuration defaults.
51 #################################################################
52
53 # application image
54 image: onap/portal-app:3.4.2
55 pullPolicy: Always
56
57 # application configuration
58 config:
59   # cipherEncKeyExternalSecret: some secret
60   cipherEncKey: AGLDdG4D04BKm2IxIWEr8o==!
61
62 #AAF local config
63
64 aafURL: https://aaf-service:8100/authz/
65 certInitializer:
66   nameOverride: portal-app-cert-initializer
67   aafDeployFqi: deployer@people.osaaf.org
68   aafDeployPass: demo123456!
69   fqdn: portal
70   fqi: portal@portal.onap.org
71   public_fqdn: portal.onap.org
72   cadi_latitude: "38.0"
73   cadi_longitude: "-72.0"
74   credsPath: /opt/app/osaaf/local
75   app_ns: org.osaaf.aaf
76   permission_user: 1000
77   permission_group: 999
78   keystoreFile: "org.onap.portal.p12"
79   truststoreFile: "org.onap.portal.trust.jks"
80   aaf_add_config: >
81     /opt/app/aaf_config/bin/agent.sh;
82     /opt/app/aaf_config/bin/agent.sh local showpass \
83     {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop
84
85 # default number of instances
86 replicaCount: 1
87
88 nodeSelector: {}
89
90 affinity: {}
91
92 # probe configuration parameters
93 liveness:
94   initialDelaySeconds: 10
95   periodSeconds: 10
96   # necessary to disable liveness probe when setting breakpoints
97   # in debugger so K8s doesn't restart unresponsive container
98   enabled: true
99
100 readiness:
101   initialDelaySeconds: 10
102   periodSeconds: 10
103
104 service:
105   type: LoadBalancer
106   name: portal-app
107   portName: portal-app
108   externalPort: 8989
109   internalPort: 8080
110   nodePort: 15
111   externalPort2: 8006
112   internalPort2: 8005
113   nodePort2: 13
114   externalPort3: 8010
115   internalPort3: 8009
116   nodePort3: 14
117   externalPort4: 8443
118   internalPort4: 8443
119   nodePort4: 25
120
121 mariadb:
122   service:
123     name: portal-db
124   config:
125     # backendDbExternalSecret: some secret
126     backendUserName: portal
127     backendPassword: portal
128 widget:
129   service:
130     name: portal-widget
131 cassandra:
132   service:
133     name: portal-cassandra
134   config:
135     # cassandraExternalSecret: some secret
136     cassandraUsername: root
137     cassandraPassword: Aa123456
138 messageRouter:
139   service:
140     name: message-router
141
142 ingress:
143   enabled: false
144   service:
145     - baseaddr: portal.api
146       name: "portal-app"
147       port: 8443
148   config:
149     ssl: "redirect"
150
151 # Resource Limit flavor -By Default using small
152 flavor: small
153 # Segregation for Different environment (Small and Large)
154 resources:
155   small:
156     limits:
157       cpu: 2.2
158       memory: 800Mi
159     requests:
160       cpu: 30m
161       memory: 460Mi
162   large:
163     limits:
164       cpu: 4
165       memory: 15Gi
166     requests:
167       cpu: 2
168       memory: 8Gi
169   unlimited: {}