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