[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   readinessImage: onap/oom/readiness:3.0.1
24   loggingRepository: docker.elastic.co
25   loggingImage: beats/filebeat:5.5.0
26   persistence: {}
27   envsubstImage: dibi/envsubst
28   #AAF service
29   aafEnabled: true
30
31 ################################################################
32 # Secrets metaconfig
33 #################################################################
34
35 secrets:
36   - uid: portal-cass
37     type: basicAuth
38     externalSecret: '{{ tpl (default "" .Values.cassandra.config.cassandraExternalSecret) . }}'
39     login: '{{ .Values.cassandra.config.cassandraUsername }}'
40     password: '{{ .Values.cassandra.config.cassandraPassword }}'
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   - uid: cipher-enc-key
49     type: password
50     externalSecret: '{{ .Values.config.cipherEncKeyExternalSecret}}'
51     password: '{{ .Values.config.cipherEncKey }}'
52     passwordPolicy: required
53
54 #################################################################
55 # Application configuration defaults.
56 #################################################################
57
58 # application image
59 repository: nexus3.onap.org:10001
60 image: onap/portal-sdk:3.4.2
61 pullPolicy: Always
62
63 # application configuration
64 config:
65   # cipherEncKeyExternalSecret: some secret
66   cipherEncKey: AGLDdG4D04BKm2IxIWEr8o==
67
68
69 #AAF local config
70 aafURL: https://aaf-service:8100/authz/
71 certInitializer:
72   nameOverride: portal-sdk-cert-initializer
73   aafDeployFqi: deployer@people.osaaf.org
74   aafDeployPass: demo123456!
75   fqdn: portal
76   fqi: portal@portal.onap.org
77   public_fqdn: portal.onap.org
78   cadi_latitude: "38.0"
79   cadi_longitude: "-72.0"
80   credsPath: /opt/app/osaaf/local
81   app_ns: org.osaaf.aaf
82   permission_user: 1000
83   permission_group: 999
84   keystoreFile: "org.onap.portal.p12"
85   truststoreFile: "org.onap.portal.trust.jks"
86   aaf_add_config: >
87     /opt/app/aaf_config/bin/agent.sh;
88     /opt/app/aaf_config/bin/agent.sh local showpass \
89     {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop
90
91 # flag to enable debugging - application support required
92 debugEnabled: false
93
94 # default number of instances
95 replicaCount: 1
96
97 nodeSelector: {}
98
99 affinity: {}
100
101 # probe configuration parameters
102 liveness:
103   initialDelaySeconds: 10
104   periodSeconds: 10
105   # necessary to disable liveness probe when setting breakpoints
106   # in debugger so K8s doesn't restart unresponsive container
107   enabled: true
108
109 readiness:
110   initialDelaySeconds: 10
111   periodSeconds: 10
112
113 service:
114   type: NodePort
115   name: portal-sdk
116   portName: portal-sdk
117   internalPort: 8443
118   externalPort: 8443
119   nodePort: 12
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-sdk
146       name: "portal-sdk"
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: 600m
158       memory: 1.6Gi
159     requests:
160       cpu: 10m
161       memory: 1.3Gi
162   large:
163     limits:
164       cpu: 8
165       memory: 20Gi
166     requests:
167       cpu: 4
168       memory: 10Gi
169   unlimited: {}