Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 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: |
| 20 | nodePortPrefix: 302 |
Sandeep Shah | 8f1acc0 | 2020-10-20 16:11:21 -0500 | [diff] [blame] | 21 | |
| 22 | ################################################################ |
| 23 | # Secrets metaconfig |
| 24 | ################################################################# |
| 25 | |
| 26 | secrets: |
| 27 | - uid: portal-backend-db |
| 28 | type: basicAuth |
| 29 | externalSecret: '{{ tpl (default "" .Values.mariadb.config.backendDbExternalSecret) . }}' |
| 30 | login: '{{ .Values.mariadb.config.backendUserName }}' |
| 31 | password: '{{ .Values.mariadb.config.backendPassword }}' |
| 32 | passwordPolicy: required |
| 33 | - uid: portal-widget |
| 34 | type: basicAuth |
| 35 | externalSecret: '{{ tpl (default "" .Values.config.widgetCredsExternalSecret) . }}' |
| 36 | login: '{{ .Values.config.widgetUsername }}' |
| 37 | password: '{{ .Values.config.widgetPassword }}' |
| 38 | passwordPolicy: required |
| 39 | - uid: portal-account |
| 40 | type: basicAuth |
| 41 | externalSecret: '{{ tpl (default "" .Values.config.accountCredsExternalSecret) . }}' |
| 42 | login: '{{ .Values.config.accountUsername }}' |
| 43 | password: '{{ .Values.config.accountPassword }}' |
| 44 | passwordPolicy: required |
| 45 | - uid: jasypt-enc-key |
| 46 | type: password |
| 47 | externalSecret: '{{ .Values.config.jasyptEncKeyExternalSecret}}' |
| 48 | password: '{{ .Values.config.jasyptEncKey }}' |
| 49 | passwordPolicy: required |
| 50 | |
| 51 | config: |
| 52 | widgetUsername: widget_user |
| 53 | widgetPassword: widget_pass |
| 54 | # widgetCredsExternalSecret: some secret |
| 55 | accountUsername: portal |
| 56 | accountPassword: portal |
| 57 | # accountCredsExternalSecret: some secret |
| 58 | jasyptEncKey: EncryptionKey |
| 59 | # jasyptEncKeyExternalSecret: some secret |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 60 | |
| 61 | ################################################################# |
| 62 | # Application configuration defaults. |
| 63 | ################################################################# |
| 64 | # application image |
Sandeep Shah | e614fd3 | 2020-10-30 10:34:08 -0500 | [diff] [blame] | 65 | image: onap/portal-wms:3.4.2 |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 66 | pullPolicy: Always |
| 67 | |
| 68 | # flag to enable debugging - application support required |
| 69 | debugEnabled: false |
| 70 | |
| 71 | # default number of instances |
| 72 | replicaCount: 1 |
| 73 | |
| 74 | nodeSelector: {} |
| 75 | |
| 76 | affinity: {} |
| 77 | |
| 78 | # probe configuration parameters |
| 79 | liveness: |
| 80 | initialDelaySeconds: 10 |
| 81 | periodSeconds: 10 |
| 82 | # necessary to disable liveness probe when setting breakpoints |
| 83 | # in debugger so K8s doesn't restart unresponsive container |
| 84 | enabled: true |
| 85 | |
| 86 | readiness: |
| 87 | initialDelaySeconds: 10 |
| 88 | periodSeconds: 10 |
| 89 | |
| 90 | mariadb: |
Mandeep Khinda | f8b8f07 | 2018-04-26 14:35:38 +0000 | [diff] [blame] | 91 | service: |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 92 | name: portal-db |
Sandeep Shah | 8f1acc0 | 2020-10-20 16:11:21 -0500 | [diff] [blame] | 93 | config: |
| 94 | # backendDbExternalSecret: some secret |
| 95 | backendUserName: portal |
| 96 | backendPassword: portal |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 97 | |
| 98 | service: |
| 99 | type: ClusterIP |
| 100 | name: portal-widget |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 101 | portName: portal-widget |
Mandeep Khinda | 1d12388 | 2018-03-27 01:26:59 +0000 | [diff] [blame] | 102 | externalPort: 8082 |
| 103 | internalPort: 8082 |
| 104 | |
| 105 | ingress: |
| 106 | enabled: false |
| 107 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 108 | # Resource Limit flavor -By Default using small |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 109 | flavor: small |
| 110 | # Segregation for Different environment (Small and Large) |
| 111 | resources: |
| 112 | small: |
| 113 | limits: |
| 114 | cpu: 1 |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 115 | memory: 430Mi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 116 | requests: |
Sylvain Desbureaux | 22b89c7 | 2019-10-29 12:00:36 +0100 | [diff] [blame] | 117 | cpu: 1m |
| 118 | memory: 360Mi |
Nishukumar | 75d48b9 | 2018-09-19 12:11:51 +0000 | [diff] [blame] | 119 | large: |
| 120 | limits: |
| 121 | cpu: 2 |
| 122 | memory: 8Gi |
| 123 | requests: |
| 124 | cpu: 1 |
| 125 | memory: 4Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 126 | unlimited: {} |