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