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