Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 2 | # Modifications Copyright © 2018,2020 AT&T |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 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: |
Krzysztof Opasiak | eac587d | 2020-05-21 23:53:02 +0200 | [diff] [blame] | 20 | env: |
| 21 | tomcatDir: "/usr/local/tomcat" |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 22 | nodePortPrefix: 302 |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 23 | #AAF service |
| 24 | aafEnabled: true |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 25 | |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 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 |
Sandeep Shah | d6b989d | 2020-09-25 15:53:18 -0500 | [diff] [blame] | 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 |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 48 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 49 | ################################################################# |
| 50 | # Application configuration defaults. |
| 51 | ################################################################# |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 52 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 53 | # application image |
Sandeep Shah | e614fd3 | 2020-10-30 10:34:08 -0500 | [diff] [blame] | 54 | image: onap/portal-app:3.4.2 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 55 | pullPolicy: Always |
| 56 | |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 57 | # application configuration |
| 58 | config: |
| 59 | # cipherEncKeyExternalSecret: some secret |
| 60 | cipherEncKey: AGLDdG4D04BKm2IxIWEr8o==! |
| 61 | |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 62 | #AAF local config |
| 63 | |
ChrisC | 5392994 | 2020-05-04 12:43:34 +0200 | [diff] [blame] | 64 | aafURL: https://aaf-service:8100/authz/ |
Krzysztof Opasiak | 57ec338 | 2020-05-21 19:06:42 +0200 | [diff] [blame] | 65 | certInitializer: |
| 66 | nameOverride: portal-app-cert-initializer |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 67 | aafDeployFqi: deployer@people.osaaf.org |
| 68 | aafDeployPass: demo123456! |
| 69 | fqdn: portal |
| 70 | fqi: portal@portal.onap.org |
Krzysztof Opasiak | 57ec338 | 2020-05-21 19:06:42 +0200 | [diff] [blame] | 71 | public_fqdn: portal.onap.org |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 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 |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 78 | keystoreFile: "org.onap.portal.p12" |
| 79 | truststoreFile: "org.onap.portal.trust.jks" |
Sylvain Desbureaux | 9b457ab | 2021-02-23 16:34:37 +0100 | [diff] [blame] | 80 | aaf_add_config: | |
| 81 | echo "cadi_truststore_password=$cadi_truststore_password" > {{ .Values.credsPath }}/mycreds.prop |
| 82 | echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" >> {{ .Values.credsPath }}/mycreds.prop |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 83 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 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: |
Mandeep Khinda | 789ee4a | 2018-04-30 20:20:45 +0000 | [diff] [blame] | 104 | type: LoadBalancer |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 105 | name: portal-app |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 106 | portName: portal-app |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 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 |
st782s | bd2c612 | 2018-09-28 17:56:29 -0400 | [diff] [blame] | 116 | externalPort4: 8443 |
| 117 | internalPort4: 8443 |
root | daead43 | 2018-10-04 15:38:18 -0400 | [diff] [blame] | 118 | nodePort4: 25 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 119 | |
| 120 | mariadb: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 121 | service: |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 122 | name: portal-db |
Sandeep Shah | d6b989d | 2020-09-25 15:53:18 -0500 | [diff] [blame] | 123 | config: |
| 124 | # backendDbExternalSecret: some secret |
| 125 | backendUserName: portal |
| 126 | backendPassword: portal |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 127 | widget: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 128 | service: |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 129 | name: portal-widget |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 130 | cassandra: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 131 | service: |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 132 | name: portal-cassandra |
| 133 | config: |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 134 | # cassandraExternalSecret: some secret |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 135 | cassandraUsername: root |
| 136 | cassandraPassword: Aa123456 |
Mandeep Khinda | 454e2fd | 2018-04-06 03:03:24 +0000 | [diff] [blame] | 137 | messageRouter: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 138 | service: |
Mandeep Khinda | 454e2fd | 2018-04-06 03:03:24 +0000 | [diff] [blame] | 139 | name: message-router |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 140 | |
| 141 | ingress: |
| 142 | enabled: false |
Lucjan Bryndza | ac1080a | 2019-11-26 13:04:47 +0100 | [diff] [blame] | 143 | service: |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 144 | - baseaddr: portal.api |
Lucjan Bryndza | ac1080a | 2019-11-26 13:04:47 +0100 | [diff] [blame] | 145 | name: "portal-app" |
| 146 | port: 8443 |
| 147 | config: |
| 148 | ssl: "redirect" |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 149 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 150 | # Resource Limit flavor -By Default using small |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 151 | flavor: small |
| 152 | # Segregation for Different environment (Small and Large) |
| 153 | resources: |
| 154 | small: |
| 155 | limits: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 156 | cpu: 2.2 |
| 157 | memory: 800Mi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 158 | requests: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 159 | cpu: 30m |
| 160 | memory: 460Mi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 161 | large: |
| 162 | limits: |
| 163 | cpu: 4 |
| 164 | memory: 15Gi |
| 165 | requests: |
| 166 | cpu: 2 |
| 167 | memory: 8Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 168 | unlimited: {} |
Maciej Wereski | d5d4a85 | 2021-11-15 15:19:11 +0100 | [diff] [blame] | 169 | |
| 170 | # Log configuration |
| 171 | log: |
| 172 | path: /var/log/onap |
| 173 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |