yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 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 |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 20 | |
Krzysztof Opasiak | 43893f5 | 2020-01-31 14:26:54 +0100 | [diff] [blame] | 21 | persistence: |
| 22 | mountPath: /dockerdata-nfs |
| 23 | |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 24 | mariadbGalera: |
| 25 | #This flag allows Modeling to instantiate its own mariadb-galera cluster |
| 26 | localCluster: false |
| 27 | service: mariadb-galera |
| 28 | internalPort: 3306 |
| 29 | nameOverride: mariadb-galera |
| 30 | |
Maciej Wereski | 172c086 | 2021-11-15 11:34:06 +0100 | [diff] [blame] | 31 | centralizedLoggingEnabled: true |
| 32 | |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 33 | readinessCheck: |
| 34 | wait_for: |
| 35 | msb: |
| 36 | name: msb |
| 37 | containers: |
| 38 | - msb-iag |
| 39 | |
Krzysztof Opasiak | 43893f5 | 2020-01-31 14:26:54 +0100 | [diff] [blame] | 40 | ################################################################# |
Krzysztof Opasiak | 894aafb | 2020-01-31 23:28:25 +0100 | [diff] [blame] | 41 | # Secrets metaconfig |
| 42 | ################################################################# |
| 43 | secrets: |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 44 | - uid: modeling-db-secret |
| 45 | name: &dbSecretName '{{ include "common.release" . }}-modeling-db-secret' |
| 46 | type: basicAuth |
| 47 | externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}' |
| 48 | login: '{{ .Values.config.db.userName }}' |
| 49 | password: '{{ .Values.config.db.userPassword }}' |
Krzysztof Opasiak | 894aafb | 2020-01-31 23:28:25 +0100 | [diff] [blame] | 50 | |
| 51 | ################################################################# |
Krzysztof Opasiak | 43893f5 | 2020-01-31 14:26:54 +0100 | [diff] [blame] | 52 | # Dependencies configuration |
| 53 | ################################################################# |
| 54 | |
| 55 | mariadb-galera: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 56 | db: |
| 57 | externalSecret: *dbSecretName |
| 58 | name: &mysqlDbName etsicatalog |
| 59 | nameOverride: &modeling-db modeling-db |
Krzysztof Opasiak | 43893f5 | 2020-01-31 14:26:54 +0100 | [diff] [blame] | 60 | service: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 61 | name: *modeling-db |
Krzysztof Opasiak | 894aafb | 2020-01-31 23:28:25 +0100 | [diff] [blame] | 62 | internalPort: 3306 |
Krzysztof Opasiak | 43893f5 | 2020-01-31 14:26:54 +0100 | [diff] [blame] | 63 | nfsprovisionerPrefix: modeling |
| 64 | persistence: |
| 65 | mountSubPath: modeling/data |
| 66 | enabled: true |
| 67 | disableNfsProvisioner: true |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 68 | serviceAccount: |
| 69 | nameOverride: *modeling-db |
Krzysztof Opasiak | 43893f5 | 2020-01-31 14:26:54 +0100 | [diff] [blame] | 70 | |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 71 | mariadb-init: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 72 | config: |
| 73 | userCredentialsExternalSecret: *dbSecretName |
| 74 | mysqlDatabase: *mysqlDbName |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 75 | # nameOverride should be the same with common.name |
| 76 | nameOverride: modeling-etsicatalog |
| 77 | |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 78 | ################################################################# |
| 79 | # Application configuration defaults. |
| 80 | ################################################################# |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 81 | config: |
| 82 | #application configuration about msb |
| 83 | ssl_enabled: false |
dengyh | d64fec4 | 2020-10-26 15:23:42 +0800 | [diff] [blame] | 84 | msb_enabled: false |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 85 | msbProtocol: https |
| 86 | msbServiceName: msb-iag |
| 87 | msbPort: 443 |
dengyh | d64fec4 | 2020-10-26 15:23:42 +0800 | [diff] [blame] | 88 | sdcProtocol: https |
| 89 | sdcServiceName: sdc-be |
| 90 | sdcPort: 8443 |
| 91 | dmaap_enabled: false |
| 92 | dmaapProtocol: https |
| 93 | dmaapServiceName: message-router-external |
| 94 | dmaapPort: 3905 |
| 95 | |
dengyh | 9cb24cf | 2020-09-01 08:53:59 +0800 | [diff] [blame] | 96 | #application configuration user password about mariadb |
| 97 | db: |
| 98 | userName: etsicatalog |
| 99 | # userPassword: password |
| 100 | # userCredentialsExternalSecret: some-secret |
| 101 | |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 102 | # application image |
| 103 | flavor: small |
| 104 | |
dengyh | 8e29134 | 2022-04-13 08:59:48 +0800 | [diff] [blame] | 105 | image: onap/modeling/etsicatalog:1.0.14 |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 106 | pullPolicy: Always |
| 107 | |
| 108 | #Istio sidecar injection policy |
| 109 | istioSidecar: true |
| 110 | |
| 111 | # flag to enable debugging - application support required |
| 112 | debugEnabled: false |
| 113 | |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 114 | # default number of instances |
| 115 | replicaCount: 1 |
| 116 | |
| 117 | nodeSelector: {} |
| 118 | |
| 119 | affinity: {} |
| 120 | |
| 121 | # probe configuration parameters |
| 122 | liveness: |
| 123 | initialDelaySeconds: 120 |
| 124 | periodSeconds: 10 |
| 125 | # necessary to disable liveness probe when setting breakpoints |
| 126 | # in debugger so K8s doesn't restart unresponsive container |
| 127 | enabled: true |
| 128 | |
| 129 | readiness: |
| 130 | initialDelaySeconds: 10 |
| 131 | periodSeconds: 10 |
| 132 | |
| 133 | ## Persist data to a persitent volume |
| 134 | persistence: |
| 135 | enabled: true |
| 136 | ## A manually managed Persistent Volume and Claim |
| 137 | ## Requires persistence.enabled: true |
| 138 | ## If defined, PVC must be created manually before volume will be bound |
| 139 | # existingClaim: |
| 140 | volumeReclaimPolicy: Retain |
| 141 | ## database data Persistent Volume Storage Class |
| 142 | ## If defined, storageClassName: <storageClass> |
| 143 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 144 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 145 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 146 | ## GKE, AWS & OpenStack) |
| 147 | ## |
| 148 | # storageClass: "-" |
Sylvain Desbureaux | 3bcc510 | 2019-09-02 15:03:59 +0200 | [diff] [blame] | 149 | accessMode: ReadWriteOnce |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 150 | size: 2Gi |
| 151 | mountPath: /dockerdata-nfs |
dyh | 7d60445 | 2019-09-23 15:54:48 +0800 | [diff] [blame] | 152 | mountSubPath: modeling/etsicatalog |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 153 | |
| 154 | service: |
| 155 | type: ClusterIP |
dyh | 7d60445 | 2019-09-23 15:54:48 +0800 | [diff] [blame] | 156 | name: modeling-etsicatalog |
| 157 | portName: modeling-etsicatalog |
yangyanyj | b6ad3cb | 2019-05-05 23:54:08 +0800 | [diff] [blame] | 158 | externalPort: 8806 |
| 159 | internalPort: 8806 |
| 160 | # nodePort: 30806 |
| 161 | |
| 162 | ingress: |
| 163 | enabled: false |
| 164 | |
| 165 | # Configure resource requests and limits |
| 166 | resources: |
| 167 | small: |
| 168 | limits: |
| 169 | cpu: 200m |
| 170 | memory: 500Mi |
| 171 | requests: |
| 172 | cpu: 100m |
| 173 | memory: 250Mi |
| 174 | large: |
| 175 | limits: |
| 176 | cpu: 400m |
| 177 | memory: 1000Mi |
| 178 | requests: |
| 179 | cpu: 200m |
| 180 | memory: 500Mi |
| 181 | unlimited: {} |
farida azmy | 24f4143 | 2021-10-11 11:45:25 +0200 | [diff] [blame] | 182 | |
| 183 | #Pods Service Account |
| 184 | serviceAccount: |
| 185 | nameOverride: modeling-etsicatalog |
| 186 | roles: |
| 187 | - read |
Maciej Wereski | 172c086 | 2021-11-15 11:34:06 +0100 | [diff] [blame] | 188 | |
| 189 | #Log configuration |
| 190 | log: |
| 191 | path: /var/log/onap |