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