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 |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 22 | mariadbGalera: |
| 23 | serviceName: mariadb-galera |
| 24 | servicePort: '3306' |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 25 | |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 26 | readinessCheck: |
| 27 | wait_for: |
Prabhjot Singh Sethi | 46e1756 | 2021-08-20 22:40:23 +0530 | [diff] [blame] | 28 | jobs: |
| 29 | - '{{ include "common.release" . }}-so-mariadb-config-job' |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 30 | |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 31 | ################################################################# |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 32 | # Secrets metaconfig |
| 33 | ################################################################# |
| 34 | secrets: |
| 35 | - uid: db-user-creds |
| 36 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 37 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 38 | login: '{{ .Values.db.userName }}' |
| 39 | password: '{{ .Values.db.userPassword }}' |
| 40 | passwordPolicy: required |
| 41 | - uid: db-admin-creds |
| 42 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 43 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 44 | login: '{{ .Values.db.adminName }}' |
| 45 | password: '{{ .Values.db.adminPassword }}' |
| 46 | passwordPolicy: required |
Sylvain Desbureaux | aadf545 | 2020-03-18 18:13:51 +0100 | [diff] [blame] | 47 | |
| 48 | #secretsFilePaths: | |
| 49 | # - 'my file 1' |
| 50 | # - '{{ include "templateThatGeneratesFileName" . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 51 | |
| 52 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 53 | # Application configuration defaults. |
| 54 | ################################################################# |
Lukasz Rajewski | 743dca9 | 2023-06-12 07:28:58 +0000 | [diff] [blame] | 55 | image: onap/so/request-db-adapter:1.12.2 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 56 | pullPolicy: Always |
| 57 | |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 58 | db: |
| 59 | userName: so_user |
| 60 | userPassword: so_User123 |
| 61 | # userCredsExternalSecret: some secret |
| 62 | adminName: so_admin |
| 63 | adminPassword: so_Admin123 |
| 64 | # adminCredsExternalSecret: some secret |
| 65 | |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 66 | mso: |
| 67 | adapters: |
| 68 | requestDb: |
| 69 | auth: Basic YnBlbDpwYXNzd29yZDEk |
| 70 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 71 | replicaCount: 1 |
| 72 | minReadySeconds: 10 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 73 | containerPort: &containerPort 8083 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 74 | logPath: ./logs/reqdb/ |
| 75 | app: request-db-adapter |
| 76 | service: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 77 | type: ClusterIP |
| 78 | ports: |
| 79 | - name: http |
| 80 | port: *containerPort |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 81 | updateStrategy: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 82 | type: RollingUpdate |
| 83 | maxUnavailable: 1 |
| 84 | maxSurge: 1 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 85 | |
| 86 | ################################################################# |
| 87 | # soHelpers part |
| 88 | ################################################################# |
| 89 | soHelpers: |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 90 | containerPort: *containerPort |
| 91 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 92 | # Resource Limit flavor -By Default using small |
| 93 | flavor: small |
| 94 | # Segregation for Different environment (Small and Large) |
| 95 | resources: |
| 96 | small: |
| 97 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 98 | memory: 1.5Gi |
| 99 | cpu: 999 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 100 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 101 | memory: 1.5Gi |
| 102 | cpu: 0.5 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 103 | large: |
| 104 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 105 | memory: 3Gi |
| 106 | cpu: 999 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 107 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 108 | memory: 3Gi |
| 109 | cpu: 1 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 110 | unlimited: {} |
| 111 | livenessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 112 | path: /manage/health |
| 113 | port: 8083 |
| 114 | scheme: HTTP |
| 115 | initialDelaySeconds: 600 |
| 116 | periodSeconds: 60 |
| 117 | timeoutSeconds: 10 |
| 118 | successThreshold: 1 |
| 119 | failureThreshold: 3 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 120 | ingress: |
| 121 | enabled: false |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 122 | serviceMesh: |
| 123 | authorizationPolicy: |
| 124 | authorizedPrincipals: |
| 125 | - serviceAccount: robot-read |
| 126 | - serviceAccount: so-admin-cockpit-read |
| 127 | - serviceAccount: so-bpmn-infra-read |
| 128 | - serviceAccount: so-etsi-sol005-adapter-read |
| 129 | - serviceAccount: so-nssmf-adapter-read |
| 130 | - serviceAccount: so-openstack-adapter-read |
| 131 | - serviceAccount: so-read |
| 132 | - serviceAccount: so-sdc-controller-read |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 133 | nodeSelector: {} |
| 134 | tolerations: [] |
| 135 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 136 | |
| 137 | #Pods Service Account |
| 138 | serviceAccount: |
| 139 | nameOverride: so-request-db-adapter |
| 140 | roles: |
| 141 | - read |