Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [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 | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 23 | persistence: {} |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 24 | #AAF service |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 25 | aafEnabled: true |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 26 | |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 27 | ################################################################ |
| 28 | # Secrets metaconfig |
| 29 | ################################################################# |
| 30 | |
| 31 | secrets: |
| 32 | - uid: portal-cass |
| 33 | type: basicAuth |
| 34 | externalSecret: '{{ tpl (default "" .Values.cassandra.config.cassandraExternalSecret) . }}' |
| 35 | login: '{{ .Values.cassandra.config.cassandraUsername }}' |
| 36 | password: '{{ .Values.cassandra.config.cassandraPassword }}' |
| 37 | passwordPolicy: required |
Sandeep Shah | d6b989d | 2020-09-25 15:53:18 -0500 | [diff] [blame] | 38 | - uid: portal-backend-db |
| 39 | type: basicAuth |
| 40 | externalSecret: '{{ tpl (default "" .Values.mariadb.config.backendDbExternalSecret) . }}' |
| 41 | login: '{{ .Values.mariadb.config.backendUserName }}' |
| 42 | password: '{{ .Values.mariadb.config.backendPassword }}' |
| 43 | passwordPolicy: required |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 44 | - uid: cipher-enc-key |
| 45 | type: password |
| 46 | externalSecret: '{{ .Values.config.cipherEncKeyExternalSecret}}' |
| 47 | password: '{{ .Values.config.cipherEncKey }}' |
| 48 | passwordPolicy: required |
| 49 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 50 | ################################################################# |
| 51 | # Application configuration defaults. |
| 52 | ################################################################# |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 53 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 54 | # application image |
Sandeep Shah | e614fd3 | 2020-10-30 10:34:08 -0500 | [diff] [blame] | 55 | image: onap/portal-sdk:3.4.2 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 56 | pullPolicy: Always |
| 57 | |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 58 | # application configuration |
| 59 | config: |
| 60 | # cipherEncKeyExternalSecret: some secret |
| 61 | cipherEncKey: AGLDdG4D04BKm2IxIWEr8o== |
| 62 | |
| 63 | |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 64 | #AAF local config |
ChrisC | 5392994 | 2020-05-04 12:43:34 +0200 | [diff] [blame] | 65 | aafURL: https://aaf-service:8100/authz/ |
Krzysztof Opasiak | 09f5279 | 2020-05-21 23:49:45 +0200 | [diff] [blame] | 66 | certInitializer: |
| 67 | nameOverride: portal-sdk-cert-initializer |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 68 | aafDeployFqi: deployer@people.osaaf.org |
| 69 | aafDeployPass: demo123456! |
| 70 | fqdn: portal |
| 71 | fqi: portal@portal.onap.org |
Krzysztof Opasiak | 09f5279 | 2020-05-21 23:49:45 +0200 | [diff] [blame] | 72 | public_fqdn: portal.onap.org |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 73 | cadi_latitude: "38.0" |
| 74 | cadi_longitude: "-72.0" |
| 75 | credsPath: /opt/app/osaaf/local |
| 76 | app_ns: org.osaaf.aaf |
| 77 | permission_user: 1000 |
| 78 | permission_group: 999 |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 79 | keystoreFile: "org.onap.portal.p12" |
| 80 | truststoreFile: "org.onap.portal.trust.jks" |
Sylvain Desbureaux | 9b457ab | 2021-02-23 16:34:37 +0100 | [diff] [blame] | 81 | aaf_add_config: | |
| 82 | echo "cadi_truststore_password=$cadi_truststore_password" > {{ .Values.credsPath }}/mycreds.prop |
| 83 | echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" >> {{ .Values.credsPath }}/mycreds.prop |
ChrisC | 019b59c | 2020-04-03 13:58:44 +0200 | [diff] [blame] | 84 | |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 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: |
hb123f | b53c6a3 | 2018-07-12 14:21:16 -0400 | [diff] [blame] | 108 | type: NodePort |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 109 | name: portal-sdk |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 110 | portName: portal-sdk |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 111 | internalPort: 8443 |
| 112 | externalPort: 8443 |
BorislavG | cdbd3ab | 2018-07-17 08:42:23 +0000 | [diff] [blame] | 113 | nodePort: 12 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 114 | |
| 115 | mariadb: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 116 | service: |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 117 | name: portal-db |
Sandeep Shah | d6b989d | 2020-09-25 15:53:18 -0500 | [diff] [blame] | 118 | config: |
| 119 | # backendDbExternalSecret: some secret |
| 120 | backendUserName: portal |
| 121 | backendPassword: portal |
Mandeep Khinda | 454e2fd | 2018-04-06 03:03:24 +0000 | [diff] [blame] | 122 | widget: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 123 | service: |
Mandeep Khinda | 454e2fd | 2018-04-06 03:03:24 +0000 | [diff] [blame] | 124 | name: portal-widget |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 125 | cassandra: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 126 | service: |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 127 | name: portal-cassandra |
| 128 | config: |
Sandeep Shah | 2ffb1ba | 2020-09-01 21:13:16 -0500 | [diff] [blame] | 129 | # cassandraExternalSecret: some secret |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 130 | cassandraUsername: root |
| 131 | cassandraPassword: Aa123456 |
Mandeep Khinda | 454e2fd | 2018-04-06 03:03:24 +0000 | [diff] [blame] | 132 | messageRouter: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 133 | service: |
Mandeep Khinda | 454e2fd | 2018-04-06 03:03:24 +0000 | [diff] [blame] | 134 | name: message-router |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 135 | |
| 136 | ingress: |
| 137 | enabled: false |
Lucjan Bryndza | ac1080a | 2019-11-26 13:04:47 +0100 | [diff] [blame] | 138 | service: |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 139 | - baseaddr: portal-sdk |
Lucjan Bryndza | ac1080a | 2019-11-26 13:04:47 +0100 | [diff] [blame] | 140 | name: "portal-sdk" |
ChrisC | 4993144 | 2020-02-19 09:45:54 +0100 | [diff] [blame] | 141 | port: 8443 |
Lucjan Bryndza | ac1080a | 2019-11-26 13:04:47 +0100 | [diff] [blame] | 142 | config: |
Sylvain Desbureaux | 105b352 | 2020-05-06 15:23:16 +0200 | [diff] [blame] | 143 | ssl: "redirect" |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 144 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 145 | # Resource Limit flavor -By Default using small |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 146 | flavor: small |
| 147 | # Segregation for Different environment (Small and Large) |
| 148 | resources: |
| 149 | small: |
| 150 | limits: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 151 | cpu: 600m |
| 152 | memory: 1.6Gi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 153 | requests: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 154 | cpu: 10m |
| 155 | memory: 1.3Gi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 156 | large: |
| 157 | limits: |
| 158 | cpu: 8 |
| 159 | memory: 20Gi |
| 160 | requests: |
| 161 | cpu: 4 |
| 162 | memory: 10Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 163 | unlimited: {} |
Maciej Wereski | d5d4a85 | 2021-11-15 15:19:11 +0100 | [diff] [blame] | 164 | |
| 165 | # Log configuration |
| 166 | log: |
| 167 | path: /var/log/onap |
| 168 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |