sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 1 | # Copyright © 2020 Huawei Technologies Co., Ltd. |
| 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 | # Global configuration defaults. |
| 16 | ################################################################# |
| 17 | global: |
| 18 | nodePortPrefix: 302 |
| 19 | nodePortPrefixExt: 304 |
| 20 | soCryptoImage: sdesbure/so_crypto:latest |
| 21 | persistence: |
| 22 | mountPath: /dockerdata-nfs |
seshukm | 5c92419 | 2021-09-17 10:59:15 +0530 | [diff] [blame] | 23 | aai: |
| 24 | enabled: true |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 25 | ################################################################# |
| 26 | # Secrets metaconfig |
| 27 | ################################################################# |
| 28 | secrets: |
| 29 | - uid: db-user-creds |
| 30 | type: basicAuth |
| 31 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
| 32 | login: '{{ .Values.db.userName }}' |
| 33 | password: '{{ .Values.db.userPassword }}' |
| 34 | passwordPolicy: required |
| 35 | - uid: db-admin-creds |
| 36 | type: basicAuth |
| 37 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
| 38 | login: '{{ .Values.db.adminName }}' |
| 39 | password: '{{ .Values.db.adminPassword }}' |
| 40 | passwordPolicy: required |
| 41 | - uid: server-actuator-creds |
| 42 | name: '{{ include "common.release" . }}-so-cnf-actuator-creds' |
| 43 | type: basicAuth |
| 44 | externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}' |
| 45 | login: '{{ .Values.server.actuator.username }}' |
| 46 | password: '{{ .Values.server.actuator.password }}' |
| 47 | passwordPolicy: required |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 48 | - uid: so-aai-creds |
| 49 | name: '{{ include "common.release" . }}-so-cnf-aai-creds' |
| 50 | type: basicAuth |
| 51 | externalSecret: '{{ tpl (default "" .Values.server.aaiCredsExternalSecret) . }}' |
| 52 | login: '{{ .Values.server.aai.username }}' |
| 53 | password: '{{ .Values.server.aai.password }}' |
| 54 | passwordPolicy: required |
| 55 | - uid: cnf-adapter-mso-key |
| 56 | name: '{{ include "common.release" . }}-so-cnf-mso-key' |
| 57 | type: password |
| 58 | externalSecret: '{{ tpl (default "" .Values.mso.msoKeySecret) . }}' |
| 59 | password: '{{ .Values.mso.msoKey }}' |
| 60 | #secretsFilePaths: | |
| 61 | # - 'my file 1' |
| 62 | # - '{{ include "templateThatGeneratesFileName" . }}' |
| 63 | ################################################################# |
| 64 | # Application configuration defaults. |
| 65 | ################################################################# |
Seshu-Kumar-M | b10781b | 2022-03-24 08:12:36 +0530 | [diff] [blame] | 66 | image: onap/so/so-cnf-adapter:1.10.0 |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 67 | pullPolicy: Always |
Sylvain Desbureaux | a2e3275 | 2020-12-08 18:03:50 +0100 | [diff] [blame] | 68 | |
| 69 | readinessCheck: |
| 70 | wait_for: |
| 71 | jobs: |
| 72 | - '{{ include "common.release" . }}-so-mariadb-config-job' |
| 73 | |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame^] | 74 | # Local mariadb galera instance default name |
| 75 | mariadb-galera: |
| 76 | nameOverride: so-mariadb-galera |
| 77 | service: |
| 78 | internalPort: 3306 |
| 79 | mariadbOperator: |
| 80 | galera: |
| 81 | enabled: false |
| 82 | |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 83 | db: |
| 84 | userName: so_user |
| 85 | userPassword: so_User123 |
| 86 | # userCredsExternalSecret: some secret |
| 87 | adminName: so_admin |
| 88 | adminPassword: so_Admin123 |
| 89 | # adminCredsExternalSecret: some secret |
| 90 | server: |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 91 | aai: |
| 92 | username: aai@aai.onap.org |
| 93 | password: demo123456! |
| 94 | auth: ${AAI_AUTH} |
| 95 | # aaiCredsExternalSecret: some secret |
| 96 | actuator: |
| 97 | username: mso_admin |
| 98 | password: password1$ |
| 99 | # actuatorCredsExternalSecret: some secret |
| 100 | mso: |
| 101 | msoKey: 07a7159d3bf51a0e53be7a8f89699be7 |
| 102 | # msoKeySecret: some secret |
| 103 | adapters: |
| 104 | requestDb: |
| 105 | auth: ${REQUEST_AUTH} |
| 106 | replicaCount: 1 |
| 107 | minReadySeconds: 10 |
| 108 | containerPort: &containerPort 8090 |
seshukm | 65ba214 | 2021-04-01 21:59:10 +0530 | [diff] [blame] | 109 | logPath: ./logs/cnf-adapter/ |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 110 | app: cnf-adapter |
| 111 | service: |
| 112 | type: ClusterIP |
| 113 | ports: |
| 114 | - name: http-api |
| 115 | port: *containerPort |
| 116 | updateStrategy: |
| 117 | type: RollingUpdate |
| 118 | maxUnavailable: 1 |
| 119 | maxSurge: 1 |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 120 | |
| 121 | ################################################################# |
| 122 | # soHelpers part |
| 123 | ################################################################# |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 124 | soHelpers: |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 125 | containerPort: *containerPort |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 126 | |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 127 | # Resource Limit flavor -By Default using small |
| 128 | flavor: small |
| 129 | # Segregation for Different environment (Small and Large) |
| 130 | resources: |
| 131 | small: |
| 132 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 133 | memory: 1Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 134 | cpu: 1 |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 135 | requests: |
| 136 | memory: 1Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 137 | cpu: 0.5 |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 138 | large: |
| 139 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 140 | memory: 2Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 141 | cpu: 2 |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 142 | requests: |
| 143 | memory: 2Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 144 | cpu: 1 |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 145 | unlimited: {} |
| 146 | livenessProbe: |
| 147 | path: /manage/health |
| 148 | port: 8090 |
| 149 | scheme: HTTP |
| 150 | initialDelaySeconds: 600 |
| 151 | periodSeconds: 60 |
| 152 | timeoutSeconds: 10 |
| 153 | successThreshold: 1 |
| 154 | failureThreshold: 3 |
| 155 | ingress: |
| 156 | enabled: false |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 157 | serviceMesh: |
| 158 | authorizationPolicy: |
| 159 | authorizedPrincipals: |
| 160 | - serviceAccount: so-read |
sekharhuawei | 2e799e9 | 2020-11-14 17:06:56 +0530 | [diff] [blame] | 161 | nodeSelector: {} |
| 162 | tolerations: [] |
| 163 | affinity: {} |
| 164 | |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 165 | #Pods Service Account |
| 166 | serviceAccount: |
| 167 | nameOverride: so-cnf-adapter |
| 168 | roles: |
| 169 | - read |