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: |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 23 | # flag to enable the DB creation via mariadb-operator |
| 24 | useOperator: true |
Andreas Geissler | 576de2d | 2023-10-24 15:38:01 +0200 | [diff] [blame] | 25 | service: mariadb-galera |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 26 | servicePort: '3306' |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 27 | |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 28 | readinessCheck: |
| 29 | wait_for: |
Prabhjot Singh Sethi | 46e1756 | 2021-08-20 22:40:23 +0530 | [diff] [blame] | 30 | jobs: |
| 31 | - '{{ include "common.release" . }}-so-mariadb-config-job' |
Sylvain Desbureaux | d055a17 | 2020-10-30 14:32:03 +0100 | [diff] [blame] | 32 | |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 33 | ################################################################# |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 34 | # Secrets metaconfig |
| 35 | ################################################################# |
| 36 | secrets: |
| 37 | - uid: db-user-creds |
| 38 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 39 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 40 | login: '{{ .Values.db.userName }}' |
| 41 | password: '{{ .Values.db.userPassword }}' |
| 42 | passwordPolicy: required |
| 43 | - uid: db-admin-creds |
| 44 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 45 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 46 | login: '{{ .Values.db.adminName }}' |
| 47 | password: '{{ .Values.db.adminPassword }}' |
| 48 | passwordPolicy: required |
Sylvain Desbureaux | aadf545 | 2020-03-18 18:13:51 +0100 | [diff] [blame] | 49 | |
| 50 | #secretsFilePaths: | |
| 51 | # - 'my file 1' |
| 52 | # - '{{ include "templateThatGeneratesFileName" . }}' |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 53 | |
| 54 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 55 | # Application configuration defaults. |
| 56 | ################################################################# |
Lukasz Rajewski | 743dca9 | 2023-06-12 07:28:58 +0000 | [diff] [blame] | 57 | image: onap/so/request-db-adapter:1.12.2 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 58 | pullPolicy: Always |
| 59 | |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 60 | # Local mariadb galera instance default name |
| 61 | mariadb-galera: |
| 62 | nameOverride: so-mariadb-galera |
| 63 | service: |
| 64 | internalPort: 3306 |
| 65 | mariadbOperator: |
| 66 | galera: |
| 67 | enabled: false |
| 68 | |
Krzysztof Opasiak | f232c99 | 2020-03-24 23:08:15 +0100 | [diff] [blame] | 69 | db: |
| 70 | userName: so_user |
| 71 | userPassword: so_User123 |
| 72 | # userCredsExternalSecret: some secret |
| 73 | adminName: so_admin |
| 74 | adminPassword: so_Admin123 |
| 75 | # adminCredsExternalSecret: some secret |
| 76 | |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 77 | mso: |
| 78 | adapters: |
| 79 | requestDb: |
| 80 | auth: Basic YnBlbDpwYXNzd29yZDEk |
| 81 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 82 | replicaCount: 1 |
| 83 | minReadySeconds: 10 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 84 | containerPort: &containerPort 8083 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 85 | logPath: ./logs/reqdb/ |
| 86 | app: request-db-adapter |
| 87 | service: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 88 | type: ClusterIP |
| 89 | ports: |
| 90 | - name: http |
| 91 | port: *containerPort |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 92 | updateStrategy: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 93 | type: RollingUpdate |
| 94 | maxUnavailable: 1 |
| 95 | maxSurge: 1 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 96 | |
| 97 | ################################################################# |
| 98 | # soHelpers part |
| 99 | ################################################################# |
| 100 | soHelpers: |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 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: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 109 | cpu: "1" |
| 110 | memory: "1.5Gi" |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 111 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 112 | cpu: "0.5" |
| 113 | memory: "1.5Gi" |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 114 | large: |
| 115 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 116 | cpu: "2" |
| 117 | memory: "3Gi" |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 118 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 119 | cpu: "1" |
| 120 | memory: "3Gi" |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 121 | unlimited: {} |
| 122 | livenessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 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 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 131 | ingress: |
| 132 | enabled: false |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 133 | serviceMesh: |
| 134 | authorizationPolicy: |
| 135 | authorizedPrincipals: |
| 136 | - serviceAccount: robot-read |
| 137 | - serviceAccount: so-admin-cockpit-read |
| 138 | - serviceAccount: so-bpmn-infra-read |
| 139 | - serviceAccount: so-etsi-sol005-adapter-read |
| 140 | - serviceAccount: so-nssmf-adapter-read |
| 141 | - serviceAccount: so-openstack-adapter-read |
| 142 | - serviceAccount: so-read |
| 143 | - serviceAccount: so-sdc-controller-read |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 144 | nodeSelector: {} |
| 145 | tolerations: [] |
| 146 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 147 | |
| 148 | #Pods Service Account |
| 149 | serviceAccount: |
| 150 | nameOverride: so-request-db-adapter |
| 151 | roles: |
| 152 | - read |