jananib | 28734e0 | 2020-04-08 21:35:45 +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 |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 20 | persistence: |
| 21 | mountPath: /dockerdata-nfs |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 22 | mariadbGalera: |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame^] | 23 | # flag to enable the DB creation via mariadb-operator |
| 24 | useOperator: true |
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' |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [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 | |
| 33 | |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 34 | ################################################################# |
| 35 | # Secrets metaconfig |
| 36 | ################################################################# |
| 37 | secrets: |
| 38 | - uid: db-user-creds |
| 39 | name: '{{ include "common.release" . }}-so-bpmn-infra-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 | name: '{{ include "common.release" . }}-so-bpmn-infra-db-admin-creds' |
| 47 | type: basicAuth |
| 48 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
| 49 | login: '{{ .Values.db.adminName }}' |
| 50 | password: '{{ .Values.db.adminPassword }}' |
| 51 | passwordPolicy: required |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 52 | - uid: server-bpel-creds |
| 53 | name: '{{ include "common.release" . }}-so-server-bpel-creds' |
| 54 | type: basicAuth |
| 55 | externalSecret: '{{ tpl (default "" .Values.server.bpelCredsExternalSecret) . }}' |
| 56 | login: '{{ .Values.server.bpel.username }}' |
| 57 | password: '{{ .Values.server.bpel.password }}' |
| 58 | passwordPolicy: required |
| 59 | - uid: server-actuator-creds |
| 60 | name: '{{ include "common.release" . }}-so-server-actuator-creds' |
| 61 | type: basicAuth |
| 62 | externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}' |
| 63 | login: '{{ .Values.server.actuator.username }}' |
| 64 | password: '{{ .Values.server.actuator.password }}' |
| 65 | passwordPolicy: required |
| 66 | |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 67 | #secretsFilePaths: | |
| 68 | # - 'my file 1' |
| 69 | # - '{{ include "templateThatGeneratesFileName" . }}' |
| 70 | |
| 71 | ################################################################# |
| 72 | # Application configuration defaults. |
| 73 | ################################################################# |
seshukm | 5c4f6ac | 2021-10-18 14:12:55 +0530 | [diff] [blame] | 74 | image: onap/so/so-nssmf-adapter:1.9.1 |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 75 | pullPolicy: Always |
| 76 | |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame^] | 77 | # Local mariadb galera instance default name |
| 78 | mariadb-galera: |
| 79 | nameOverride: so-mariadb-galera |
| 80 | service: |
| 81 | internalPort: 3306 |
| 82 | mariadbOperator: |
| 83 | galera: |
| 84 | enabled: false |
| 85 | |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 86 | db: |
| 87 | userName: so_user |
| 88 | userPassword: so_User123 |
| 89 | # userCredsExternalSecret: some secret |
| 90 | adminName: so_admin |
| 91 | adminPassword: so_Admin123 |
| 92 | # adminCredsExternalSecret: some secret |
| 93 | server: |
| 94 | actuator: |
| 95 | username: mso_admin |
| 96 | password: password1$ |
| 97 | bpel: |
| 98 | username: bpel |
| 99 | password: password1$ |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 100 | aai: |
| 101 | auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586 |
| 102 | mso: |
| 103 | adapters: |
| 104 | requestDb: |
| 105 | auth: Basic YnBlbDpwYXNzd29yZDEk |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 106 | |
| 107 | replicaCount: 1 |
| 108 | minReadySeconds: 10 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 109 | containerPort: &containerPort 8088 |
seshukm | 65ba214 | 2021-04-01 21:59:10 +0530 | [diff] [blame] | 110 | logPath: ./logs/nssmf-adapter/ |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 111 | app: nssmf-adapter |
| 112 | service: |
| 113 | type: ClusterIP |
| 114 | ports: |
Andreas Geissler | 17be962 | 2022-04-29 13:33:02 +0200 | [diff] [blame] | 115 | - name: http |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 116 | port: *containerPort |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 117 | updateStrategy: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 118 | type: RollingUpdate |
| 119 | maxUnavailable: 1 |
| 120 | maxSurge: 1 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 121 | |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 122 | ################################################################# |
| 123 | # soHelpers part |
| 124 | ################################################################# |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 125 | soHelpers: |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 126 | containerPort: *containerPort |
| 127 | |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 128 | # Resource Limit flavor -By Default using small |
| 129 | flavor: small |
| 130 | # Segregation for Different environment (Small and Large) |
| 131 | resources: |
| 132 | small: |
| 133 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 134 | memory: 1Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 135 | cpu: 1 |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 136 | requests: |
| 137 | memory: 1Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 138 | cpu: 0.5 |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 139 | large: |
| 140 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 141 | memory: 2Gi |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 142 | cpu: 2 |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 143 | requests: |
| 144 | memory: 2Gi |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 145 | cpu: 1 |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 146 | unlimited: {} |
| 147 | livenessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 148 | path: /manage/health |
| 149 | port: 8088 |
| 150 | scheme: HTTP |
| 151 | initialDelaySeconds: 600 |
| 152 | periodSeconds: 60 |
| 153 | timeoutSeconds: 10 |
| 154 | successThreshold: 1 |
| 155 | failureThreshold: 3 |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 156 | ingress: |
| 157 | enabled: false |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 158 | serviceMesh: |
| 159 | authorizationPolicy: |
| 160 | authorizedPrincipals: |
| 161 | - serviceAccount: robot-read |
| 162 | - serviceAccount: so-bpmn-infra-read |
| 163 | - serviceAccount: so-read |
jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [diff] [blame] | 164 | nodeSelector: {} |
| 165 | tolerations: [] |
| 166 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 167 | |
| 168 | #Pods Service Account |
| 169 | serviceAccount: |
| 170 | nameOverride: so-nssmf-adapter |
| 171 | roles: |
| 172 | - read |