Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 1 | # Copyright © 2018 AT&T USA |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 2 | # Copyright © 2020 Huawei |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 14 | ################################################################# |
| 15 | # Global configuration defaults. |
| 16 | ################################################################# |
| 17 | global: |
| 18 | nodePortPrefix: 302 |
| 19 | nodePortPrefixExt: 304 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 20 | persistence: |
| 21 | mountPath: /dockerdata-nfs |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 22 | security: |
| 23 | aaf: |
| 24 | enabled: false |
| 25 | aaf: |
| 26 | auth: |
| 27 | header: Basic c29Ac28ub25hcC5vcmc6ZGVtbzEyMzQ1Ngo= |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 28 | mariadbGalera: |
| 29 | serviceName: mariadb-galera |
| 30 | servicePort: '3306' |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 31 | |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 32 | readinessCheck: |
| 33 | wait_for: |
| 34 | - so-mariadb-config |
| 35 | |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 36 | ################################################################# |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 37 | # Secrets metaconfig |
| 38 | ################################################################# |
| 39 | secrets: |
| 40 | - uid: db-user-creds |
| 41 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 42 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 43 | login: '{{ .Values.db.userName }}' |
| 44 | password: '{{ .Values.db.userPassword }}' |
| 45 | passwordPolicy: required |
| 46 | - uid: db-admin-creds |
| 47 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 48 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 49 | login: '{{ .Values.db.adminName }}' |
| 50 | password: '{{ .Values.db.adminPassword }}' |
| 51 | passwordPolicy: required |
Sylvain Desbureaux | aadf545 | 2020-03-18 18:13:51 +0100 | [diff] [blame] | 52 | |
| 53 | #secretsFilePaths: | |
| 54 | # - 'my file 1' |
| 55 | # - '{{ include "templateThatGeneratesFileName" . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 56 | |
| 57 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 58 | # Application configuration defaults. |
| 59 | ################################################################# |
Kalkere Ramesh, Sharan | df29b1e | 2020-11-13 15:51:37 -0500 | [diff] [blame] | 60 | image: onap/so/request-db-adapter:1.7.10 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 61 | pullPolicy: Always |
| 62 | |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 63 | db: |
| 64 | userName: so_user |
| 65 | userPassword: so_User123 |
| 66 | # userCredsExternalSecret: some secret |
| 67 | adminName: so_admin |
| 68 | adminPassword: so_Admin123 |
| 69 | # adminCredsExternalSecret: some secret |
| 70 | |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 71 | mso: |
| 72 | adapters: |
| 73 | requestDb: |
| 74 | auth: Basic YnBlbDpwYXNzd29yZDEk |
| 75 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 76 | replicaCount: 1 |
| 77 | minReadySeconds: 10 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 78 | containerPort: &containerPort 8083 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 79 | logPath: ./logs/reqdb/ |
| 80 | app: request-db-adapter |
| 81 | service: |
| 82 | type: ClusterIP |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 83 | internalPort: *containerPort |
| 84 | externalPort: *containerPort |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 85 | portName: so-reqdb-port |
| 86 | updateStrategy: |
| 87 | type: RollingUpdate |
| 88 | maxUnavailable: 1 |
| 89 | maxSurge: 1 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 90 | |
| 91 | ################################################################# |
| 92 | # soHelpers part |
| 93 | ################################################################# |
| 94 | soHelpers: |
| 95 | nameOverride: so-requestdb-cert-init |
| 96 | certInitializer: |
| 97 | nameOverride: so-requestdb-cert-init |
| 98 | credsPath: /opt/app/osaaf/local |
| 99 | cadi: |
| 100 | apiEnforcement: org.onap.so.requestDbAdapterPerm |
| 101 | containerPort: *containerPort |
| 102 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 103 | # Resource Limit flavor -By Default using small |
| 104 | flavor: small |
| 105 | # Segregation for Different environment (Small and Large) |
| 106 | resources: |
| 107 | small: |
| 108 | limits: |
| 109 | memory: 4Gi |
| 110 | cpu: 2000m |
| 111 | requests: |
| 112 | memory: 1Gi |
| 113 | cpu: 500m |
| 114 | large: |
| 115 | limits: |
| 116 | memory: 8Gi |
| 117 | cpu: 4000m |
| 118 | requests: |
| 119 | memory: 2Gi |
| 120 | cpu: 1000m |
| 121 | unlimited: {} |
| 122 | livenessProbe: |
| 123 | path: /manage/health |
| 124 | port: 8083 |
| 125 | scheme: HTTP |
| 126 | initialDelaySeconds: 600 |
| 127 | periodSeconds: 60 |
| 128 | timeoutSeconds: 10 |
| 129 | successThreshold: 1 |
| 130 | failureThreshold: 3 |
| 131 | ingress: |
| 132 | enabled: false |
| 133 | nodeSelector: {} |
| 134 | tolerations: [] |
| 135 | affinity: {} |