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: |
Prabhjot Singh Sethi | 46e1756 | 2021-08-20 22:40:23 +0530 | [diff] [blame] | 34 | jobs: |
| 35 | - '{{ include "common.release" . }}-so-mariadb-config-job' |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 36 | |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 37 | ################################################################# |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 38 | # Secrets metaconfig |
| 39 | ################################################################# |
| 40 | secrets: |
| 41 | - uid: db-user-creds |
| 42 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 43 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 44 | login: '{{ .Values.db.userName }}' |
| 45 | password: '{{ .Values.db.userPassword }}' |
| 46 | passwordPolicy: required |
| 47 | - uid: db-admin-creds |
| 48 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 49 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 50 | login: '{{ .Values.db.adminName }}' |
| 51 | password: '{{ .Values.db.adminPassword }}' |
| 52 | passwordPolicy: required |
Sylvain Desbureaux | aadf545 | 2020-03-18 18:13:51 +0100 | [diff] [blame] | 53 | |
| 54 | #secretsFilePaths: | |
| 55 | # - 'my file 1' |
| 56 | # - '{{ include "templateThatGeneratesFileName" . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 57 | |
| 58 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 59 | # Application configuration defaults. |
| 60 | ################################################################# |
Seshu-Kumar-M | b10781b | 2022-03-24 08:12:36 +0530 | [diff] [blame] | 61 | image: onap/so/request-db-adapter:1.10.0 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 62 | pullPolicy: Always |
| 63 | |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 64 | db: |
| 65 | userName: so_user |
| 66 | userPassword: so_User123 |
| 67 | # userCredsExternalSecret: some secret |
| 68 | adminName: so_admin |
| 69 | adminPassword: so_Admin123 |
| 70 | # adminCredsExternalSecret: some secret |
| 71 | |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 72 | mso: |
| 73 | adapters: |
| 74 | requestDb: |
| 75 | auth: Basic YnBlbDpwYXNzd29yZDEk |
| 76 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 77 | replicaCount: 1 |
| 78 | minReadySeconds: 10 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 79 | containerPort: &containerPort 8083 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 80 | logPath: ./logs/reqdb/ |
| 81 | app: request-db-adapter |
| 82 | service: |
| 83 | type: ClusterIP |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 84 | internalPort: *containerPort |
| 85 | externalPort: *containerPort |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 86 | portName: so-reqdb-port |
| 87 | updateStrategy: |
| 88 | type: RollingUpdate |
| 89 | maxUnavailable: 1 |
| 90 | maxSurge: 1 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 91 | |
| 92 | ################################################################# |
| 93 | # soHelpers part |
| 94 | ################################################################# |
| 95 | soHelpers: |
| 96 | nameOverride: so-requestdb-cert-init |
| 97 | certInitializer: |
| 98 | nameOverride: so-requestdb-cert-init |
| 99 | credsPath: /opt/app/osaaf/local |
| 100 | cadi: |
| 101 | apiEnforcement: org.onap.so.requestDbAdapterPerm |
| 102 | containerPort: *containerPort |
| 103 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 104 | # Resource Limit flavor -By Default using small |
| 105 | flavor: small |
| 106 | # Segregation for Different environment (Small and Large) |
| 107 | resources: |
| 108 | small: |
| 109 | limits: |
| 110 | memory: 4Gi |
| 111 | cpu: 2000m |
| 112 | requests: |
| 113 | memory: 1Gi |
| 114 | cpu: 500m |
| 115 | large: |
| 116 | limits: |
| 117 | memory: 8Gi |
| 118 | cpu: 4000m |
| 119 | requests: |
| 120 | memory: 2Gi |
| 121 | cpu: 1000m |
| 122 | unlimited: {} |
| 123 | livenessProbe: |
| 124 | path: /manage/health |
| 125 | port: 8083 |
| 126 | scheme: HTTP |
| 127 | initialDelaySeconds: 600 |
| 128 | periodSeconds: 60 |
| 129 | timeoutSeconds: 10 |
| 130 | successThreshold: 1 |
| 131 | failureThreshold: 3 |
| 132 | ingress: |
| 133 | enabled: false |
| 134 | nodeSelector: {} |
| 135 | tolerations: [] |
| 136 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 137 | |
| 138 | #Pods Service Account |
| 139 | serviceAccount: |
| 140 | nameOverride: so-request-db-adapter |
| 141 | roles: |
| 142 | - read |