Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 1 | # Copyright © 2020 Wipro Limited. |
| 2 | # |
| 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. |
| 14 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
| 20 | nodePortPrefixExt: 304 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 21 | persistence: |
| 22 | mountPath: /dockerdata-nfs |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 23 | mariadbGalera: |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 24 | # flag to enable the DB creation via mariadb-operator |
| 25 | useOperator: true |
Andreas Geissler | 576de2d | 2023-10-24 15:38:01 +0200 | [diff] [blame] | 26 | service: mariadb-galera |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 27 | servicePort: '3306' |
| 28 | |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 29 | # Secrets metaconfig |
| 30 | ################################################################# |
| 31 | db: |
| 32 | userName: so_user |
| 33 | userPassword: so_User123 |
| 34 | # userCredsExternalSecret: some secret |
| 35 | adminName: so_admin |
| 36 | adminPassword: so_Admin123 |
| 37 | # adminCredsExternalSecret: some secret |
| 38 | secrets: |
| 39 | - uid: db-user-creds |
| 40 | type: basicAuth |
| 41 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
| 42 | login: '{{ .Values.db.userName }}' |
| 43 | password: '{{ .Values.db.userPassword }}' |
| 44 | passwordPolicy: required |
| 45 | - uid: db-admin-creds |
| 46 | type: basicAuth |
| 47 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
| 48 | login: '{{ .Values.db.adminName }}' |
| 49 | password: '{{ .Values.db.adminPassword }}' |
| 50 | passwordPolicy: required |
| 51 | - uid: oof-adapter-mso-key |
| 52 | type: password |
| 53 | externalSecret: '{{ tpl (default "" .Values.mso.msoKeySecret) . }}' |
| 54 | password: '{{ .Values.mso.msoKey }}' |
| 55 | - uid: oof-auth |
| 56 | type: basicAuth |
| 57 | externalSecret: '{{ tpl (default "" .Values.mso.oof.authSecret) . }}' |
| 58 | login: '{{ .Values.mso.oof.login }}' |
| 59 | password: '{{ .Values.mso.oof.password }}' |
| 60 | passwordPolicy: required |
| 61 | |
| 62 | |
| 63 | #secretsFilePaths: | |
| 64 | # - 'my file 1' |
| 65 | # - '{{ include "templateThatGeneratesFileName" . }}' |
| 66 | |
| 67 | ################################################################# |
| 68 | # Application configuration defaults. |
| 69 | ################################################################# |
seshukm | 65ba214 | 2021-04-01 21:59:10 +0530 | [diff] [blame] | 70 | image: onap/so/so-oof-adapter:1.8.3 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 71 | pullPolicy: Always |
| 72 | |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 73 | # Local mariadb galera instance default name |
| 74 | mariadb-galera: |
| 75 | nameOverride: so-mariadb-galera |
| 76 | service: |
| 77 | internalPort: 3306 |
| 78 | mariadbOperator: |
| 79 | galera: |
| 80 | enabled: false |
| 81 | |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 82 | mso: |
| 83 | msoKey: 07a7159d3bf51a0e53be7a8f89699be7 |
| 84 | oof: |
| 85 | login: test |
| 86 | password: testpwd |
| 87 | |
| 88 | replicaCount: 1 |
| 89 | containerPort: &containerPort 8090 |
| 90 | minReadySeconds: 10 |
| 91 | containerPort: *containerPort |
seshukm | 65ba214 | 2021-04-01 21:59:10 +0530 | [diff] [blame] | 92 | logPath: ./logs/oof-adapter/ |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 93 | app: so-oof-adapter |
| 94 | service: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 95 | type: ClusterIP |
| 96 | ports: |
| 97 | - name: http |
| 98 | port: *containerPort |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 99 | updateStrategy: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 100 | type: RollingUpdate |
| 101 | maxUnavailable: 1 |
| 102 | maxSurge: 1 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 103 | |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 104 | ################################################################# |
| 105 | # soHelpers part |
| 106 | ################################################################# |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 107 | soHelpers: |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 108 | containerPort: *containerPort |
| 109 | |
| 110 | # Resource Limit flavor -By Default using small |
| 111 | flavor: small |
| 112 | # Segregation for Different environment (Small and Large) |
| 113 | resources: |
| 114 | small: |
| 115 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 116 | memory: 1Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 117 | cpu: 1 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 118 | requests: |
| 119 | memory: 1Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 120 | cpu: 0.5 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 121 | large: |
| 122 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 123 | memory: 2Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 124 | cpu: 2 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 125 | requests: |
| 126 | memory: 2Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 127 | cpu: 1 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 128 | unlimited: {} |
| 129 | livenessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 130 | path: /manage/health |
| 131 | port: *containerPort |
| 132 | scheme: HTTP |
| 133 | initialDelaySeconds: 600 |
| 134 | periodSeconds: 60 |
| 135 | timeoutSeconds: 10 |
| 136 | successThreshold: 1 |
| 137 | failureThreshold: 3 |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 138 | ingress: |
| 139 | enabled: false |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 140 | serviceMesh: |
| 141 | authorizationPolicy: |
| 142 | authorizedPrincipals: |
| 143 | - serviceAccount: so-bpmn-infra-read |
| 144 | - serviceAccount: so-read |
Priyadharshini | 7dc0385 | 2020-08-27 04:36:03 -0700 | [diff] [blame] | 145 | nodeSelector: {} |
| 146 | tolerations: [] |
| 147 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 148 | |
| 149 | #Pods Service Account |
| 150 | serviceAccount: |
| 151 | nameOverride: so-oof-adapter |
| 152 | roles: |
| 153 | - read |
Maciej Wereski | df9ba22 | 2021-11-05 14:38:18 +0000 | [diff] [blame] | 154 | |
| 155 | #Log configuration |
| 156 | log: |
| 157 | path: /var/log/onap |
| 158 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |