Merge "[OOF] Direct logs to STDOUT"
[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: cipher-enc-key
43     type: password
44     externalSecret: '{{ .Values.config.cipherEncKeyExternalSecret}}'
45     password: '{{ .Values.config.cipherEncKey }}'
46     passwordPolicy: required
47
48 #################################################################
49 # Application configuration defaults.
50 #################################################################
51
52 # application image
53 repository: nexus3.onap.org:10001
54 image: onap/portal-sdk:3.2.0
55 pullPolicy: Always
56
57 # application configuration
58 config:
59   # cipherEncKeyExternalSecret: some secret
60   cipherEncKey: AGLDdG4D04BKm2IxIWEr8o==
61
62
63 #AAF local config
64 aafURL: https://aaf-service:8100/authz/
65 certInitializer:
66   nameOverride: portal-sdk-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 # 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 widget:
119   service:
120     name: portal-widget
121 cassandra:
122   service:
123     name: portal-cassandra
124   config:
125     # cassandraExternalSecret: some secret
126     cassandraUsername: root
127     cassandraPassword: Aa123456
128 messageRouter:
129   service:
130     name: message-router
131
132 ingress:
133   enabled: false
134   service:
135     - baseaddr: portal-sdk
136       name: "portal-sdk"
137       port: 8443
138   config:
139     ssl: "redirect"
140
141 # Resource Limit flavor -By Default using small
142 flavor: small
143 # Segregation for Different environment (Small and Large)
144 resources:
145   small:
146     limits:
147       cpu: 600m
148       memory: 1.6Gi
149     requests:
150       cpu: 10m
151       memory: 1.3Gi
152   large:
153     limits:
154       cpu: 8
155       memory: 20Gi
156     requests:
157       cpu: 4
158       memory: 10Gi
159   unlimited: {}