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