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 | app: |
| 23 | msoKey: 07a7159d3bf51a0e53be7a8f89699be7 |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 24 | mariadbGalera: |
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 | 72018df | 2020-03-02 22:18:41 +0100 | [diff] [blame] | 34 | # Secrets metaconfig |
| 35 | ################################################################# |
| 36 | secrets: |
| 37 | - uid: db-user-creds |
| 38 | name: '{{ include "common.release" . }}-so-catalog-db-adapter-db-user-creds' |
| 39 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 40 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | 72018df | 2020-03-02 22:18:41 +0100 | [diff] [blame] | 41 | login: '{{ .Values.db.userName }}' |
| 42 | password: '{{ .Values.db.userPassword }}' |
| 43 | passwordPolicy: required |
| 44 | - uid: db-admin-creds |
| 45 | name: '{{ include "common.release" . }}-so-catalog-db-adapter-db-admin-creds' |
| 46 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 47 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | 72018df | 2020-03-02 22:18:41 +0100 | [diff] [blame] | 48 | login: '{{ .Values.db.adminName }}' |
| 49 | password: '{{ .Values.db.adminPassword }}' |
| 50 | passwordPolicy: required |
Sylvain Desbureaux | aadf545 | 2020-03-18 18:13:51 +0100 | [diff] [blame] | 51 | |
| 52 | #secretsFilePaths: | |
| 53 | # - 'my file 1' |
| 54 | # - '{{ include "templateThatGeneratesFileName" . }}' |
Krzysztof Opasiak | 72018df | 2020-03-02 22:18:41 +0100 | [diff] [blame] | 55 | |
| 56 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 57 | # Application configuration defaults. |
| 58 | ################################################################# |
Lukasz Rajewski | 743dca9 | 2023-06-12 07:28:58 +0000 | [diff] [blame] | 59 | image: onap/so/catalog-db-adapter:1.12.2 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 60 | pullPolicy: Always |
| 61 | |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 62 | # Local mariadb galera instance default name |
| 63 | mariadb-galera: |
| 64 | nameOverride: so-mariadb-galera |
| 65 | service: |
| 66 | internalPort: 3306 |
| 67 | mariadbOperator: |
| 68 | galera: |
| 69 | enabled: false |
| 70 | |
Krzysztof Opasiak | 72018df | 2020-03-02 22:18:41 +0100 | [diff] [blame] | 71 | db: |
| 72 | userName: so_user |
| 73 | userPassword: so_User123 |
| 74 | # userCredsExternalSecret: some secret |
| 75 | adminName: so_admin |
| 76 | adminPassword: so_Admin123 |
| 77 | # adminCredsExternalSecret: some secret |
| 78 | |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 79 | mso: |
| 80 | adapters: |
| 81 | db: |
| 82 | auth: Basic YnBlbDpwYXNzd29yZDEk |
| 83 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 84 | replicaCount: 1 |
| 85 | minReadySeconds: 10 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 86 | containerPort: &containerPort 8082 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 87 | logPath: ./logs/catdb/ |
| 88 | app: catalog-db-adapter |
| 89 | service: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 90 | type: ClusterIP |
| 91 | ports: |
| 92 | - port: *containerPort |
| 93 | name: http |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 94 | updateStrategy: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 95 | type: RollingUpdate |
| 96 | maxUnavailable: 1 |
| 97 | maxSurge: 1 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 98 | |
| 99 | ################################################################# |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 100 | # soHelpers part |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 101 | ################################################################# |
| 102 | soHelpers: |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 103 | containerPort: *containerPort |
| 104 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 105 | # Resource Limit flavor -By Default using small |
| 106 | flavor: small |
| 107 | # Segregation for Different environment (Small and Large) |
| 108 | resources: |
| 109 | small: |
| 110 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 111 | memory: 1.5Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 112 | cpu: 1 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 113 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 114 | memory: 1.5Gi |
| 115 | cpu: 0.5 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 116 | large: |
| 117 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 118 | memory: 3Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 119 | cpu: 2 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 120 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 121 | memory: 3Gi |
| 122 | cpu: 1 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 123 | unlimited: {} |
| 124 | livenessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 125 | path: /manage/health |
| 126 | port: 8082 |
| 127 | scheme: HTTP |
| 128 | initialDelaySeconds: 600 |
| 129 | periodSeconds: 60 |
| 130 | timeoutSeconds: 10 |
| 131 | successThreshold: 1 |
| 132 | failureThreshold: 3 |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 133 | ingress: |
| 134 | enabled: false |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 135 | serviceMesh: |
| 136 | authorizationPolicy: |
| 137 | authorizedPrincipals: |
| 138 | - serviceAccount: robot-read |
| 139 | - serviceAccount: so-bpmn-infra-read |
| 140 | - serviceAccount: so-openstack-adapter-read |
| 141 | - serviceAccount: so-read |
| 142 | - serviceAccount: so-sdc-controller-read |
| 143 | - serviceAccount: so-sdnc-adapter-read |
Ramesh Parthasarathy | bef9c7b | 2019-03-01 21:21:20 +0000 | [diff] [blame] | 144 | config: |
| 145 | openStackUserName: "vnf_user" |
| 146 | openStackRegion: "RegionOne" |
| 147 | openStackKeyStoneUrl: "http://1.2.3.4:5000/v2.0" |
| 148 | openStackServiceTenantName: "service" |
| 149 | openStackEncryptedPasswordHere: "c124921a3a0efbe579782cde8227681e" |
| 150 | openStackTenantId: "d570c718cbc545029f40e50b75eb13df" |
AndrewLamb | 43687c0 | 2019-10-25 10:29:49 +0100 | [diff] [blame] | 151 | openStackProjectDomainName: "openStackProjectDomainName" |
| 152 | openStackUserDomainName: "openStackUserDomainName" |
Sylvain Desbureaux | 04f765e | 2020-02-13 11:08:06 +0100 | [diff] [blame] | 153 | # "KEYSTONE" for keystone v2, "KEYSTONE_V3" for keystone v3 |
| 154 | openStackKeystoneVersion: "KEYSTONE" |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 155 | nodeSelector: {} |
| 156 | tolerations: [] |
| 157 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 158 | |
| 159 | serviceAccount: |
| 160 | nameOverride: so-catalog-db-adapter |
| 161 | roles: |
| 162 | - read |