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