Merge "[DCAEGEN2] Remove restartPolicy field"
[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   readinessImage: onap/oom/readiness:3.0.1
24   loggingRepository: docker.elastic.co
25   loggingImage: beats/filebeat:5.5.0
26   envsubstImage: dibi/envsubst
27   #AAF service
28   aafEnabled: true
29
30 ################################################################
31 # Secrets metaconfig
32 #################################################################
33
34 secrets:
35   - uid: portal-cass
36     type: basicAuth
37     externalSecret: '{{ tpl (default "" .Values.cassandra.config.cassandraExternalSecret) . }}'
38     login: '{{ .Values.cassandra.config.cassandraUsername }}'
39     password: '{{ .Values.cassandra.config.cassandraPassword }}'
40     passwordPolicy: required
41   - uid: cipher-enc-key
42     type: password
43     externalSecret: '{{ .Values.config.cipherEncKeyExternalSecret}}'
44     password: '{{ .Values.config.cipherEncKey }}'
45     passwordPolicy: required
46
47 #################################################################
48 # Application configuration defaults.
49 #################################################################
50
51 # application image
52 repository: nexus3.onap.org:10001
53 image: onap/portal-app:3.2.3
54 pullPolicy: Always
55
56 # application configuration
57 config:
58   # cipherEncKeyExternalSecret: some secret
59   cipherEncKey: AGLDdG4D04BKm2IxIWEr8o==!
60
61 #AAF local config
62
63 aafURL: https://aaf-service:8100/authz/
64 certInitializer:
65   nameOverride: portal-app-cert-initializer
66   aafDeployFqi: deployer@people.osaaf.org
67   aafDeployPass: demo123456!
68   fqdn: portal
69   fqi: portal@portal.onap.org
70   public_fqdn: portal.onap.org
71   cadi_latitude: "38.0"
72   cadi_longitude: "-72.0"
73   credsPath: /opt/app/osaaf/local
74   app_ns: org.osaaf.aaf
75   permission_user: 1000
76   permission_group: 999
77   keystoreFile: "org.onap.portal.p12"
78   truststoreFile: "org.onap.portal.trust.jks"
79   aaf_add_config: >
80     /opt/app/aaf_config/bin/agent.sh;
81     /opt/app/aaf_config/bin/agent.sh local showpass \
82     {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop
83
84 # default number of instances
85 replicaCount: 1
86
87 nodeSelector: {}
88
89 affinity: {}
90
91 # probe configuration parameters
92 liveness:
93   initialDelaySeconds: 10
94   periodSeconds: 10
95   # necessary to disable liveness probe when setting breakpoints
96   # in debugger so K8s doesn't restart unresponsive container
97   enabled: true
98
99 readiness:
100   initialDelaySeconds: 10
101   periodSeconds: 10
102
103 service:
104   type: LoadBalancer
105   name: portal-app
106   portName: portal-app
107   externalPort: 8989
108   internalPort: 8080
109   nodePort: 15
110   externalPort2: 8006
111   internalPort2: 8005
112   nodePort2: 13
113   externalPort3: 8010
114   internalPort3: 8009
115   nodePort3: 14
116   externalPort4: 8443
117   internalPort4: 8443
118   nodePort4: 25
119
120 mariadb:
121   service:
122     name: portal-db
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.api
141       name: "portal-app"
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: 2.2
153       memory: 800Mi
154     requests:
155       cpu: 30m
156       memory: 460Mi
157   large:
158     limits:
159       cpu: 4
160       memory: 15Gi
161     requests:
162       cpu: 2
163       memory: 8Gi
164   unlimited: {}