vaibhavjayas | ea9aee0 | 2018-08-31 06:22:26 +0000 | [diff] [blame] | 1 | # Copyright © 2018 AT&T, 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 | |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 15 | # Global configuration default values that can be inherited by |
| 16 | # all subcharts. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | # Change to an unused port prefix range to prevent port conflicts |
| 20 | # with other instances running within the same k8s cluster |
| 21 | nodePortPrefix: 302 |
| 22 | |
| 23 | # image repositories |
| 24 | repository: nexus3.onap.org:10001 |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 25 | |
| 26 | # readiness check |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 27 | readinessImage: onap/oom/readiness:3.0.1 |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 28 | |
| 29 | # logging agent |
| 30 | loggingRepository: docker.elastic.co |
| 31 | loggingImage: beats/filebeat:5.5.0 |
| 32 | |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 33 | # envsusbt |
| 34 | envsubstImage: dibi/envsubst |
| 35 | |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 36 | # image pull policy |
| 37 | pullPolicy: Always |
| 38 | |
| 39 | # default mount path root directory referenced |
| 40 | # by persistent volumes and log files |
| 41 | persistence: |
| 42 | mountPath: /dockerdata-nfs |
| 43 | |
| 44 | # flag to enable debugging - application support required |
| 45 | debugEnabled: true |
jmac | 4f76af4 | 2018-03-28 20:36:47 +0000 | [diff] [blame] | 46 | |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 47 | ################################################################# |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 48 | # Secrets metaconfig |
| 49 | ################################################################# |
| 50 | secrets: |
| 51 | - uid: 'db-root-password' |
| 52 | type: password |
| 53 | externalSecret: '{{ tpl (default "" .Values.config.db.rootPasswordExternalSecret) . }}' |
Krzysztof Opasiak | 67b5d86 | 2020-04-24 20:41:24 +0200 | [diff] [blame] | 54 | password: '{{ .Values.config.db.rootPassword }}' |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 55 | - uid: 'db-user-creds' |
| 56 | type: basicAuth |
| 57 | externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}' |
| 58 | login: '{{ .Values.config.db.userName }}' |
Krzysztof Opasiak | 67b5d86 | 2020-04-24 20:41:24 +0200 | [diff] [blame] | 59 | password: '{{ .Values.config.db.userPassword }}' |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 60 | - uid: 'http-user-creds' |
| 61 | type: basicAuth |
| 62 | externalSecret: '{{ tpl (default "" .Values.config.httpCredsExternalSecret) . }}' |
| 63 | login: '{{ .Values.config.httpUser }}' |
| 64 | password: '{{ .Values.config.dgUserPassword }}' |
| 65 | - uid: 'admin-creds' |
| 66 | type: basicAuth |
| 67 | externalSecret: '{{ tpl (default "" .Values.config.adminCredsExternalSecret) . }}' |
| 68 | login: '{{ .Values.config.adminUser }}' |
| 69 | password: '{{ .Values.config.dgUserPassword }}' |
| 70 | - uid: 'node-creds' |
| 71 | type: basicAuth |
| 72 | externalSecret: '{{ tpl (default "" .Values.config.nodeCredsExternalSecret) . }}' |
| 73 | login: '{{ .Values.config.nodeUser }}' |
| 74 | password: '{{ .Values.config.dgUserPassword }}' |
| 75 | - uid: 'restconf-creds' |
| 76 | type: basicAuth |
| 77 | externalSecret: '{{ tpl (default "" .Values.config.restconfCredsExternalSecret) . }}' |
| 78 | login: '{{ .Values.config.restconfUser }}' |
| 79 | password: '{{ .Values.config.restconfPassword }}' |
| 80 | |
| 81 | ################################################################# |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 82 | # Application configuration defaults. |
| 83 | ################################################################# |
| 84 | # application image |
| 85 | repository: nexus3.onap.org:10001 |
Dan Timoney | a98765b | 2020-09-14 11:57:55 -0400 | [diff] [blame] | 86 | image: onap/ccsdk-dgbuilder-image:1.0.1 |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 87 | pullPolicy: Always |
| 88 | |
| 89 | # flag to enable debugging - application support required |
| 90 | debugEnabled: false |
| 91 | |
| 92 | # application configuration |
| 93 | config: |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 94 | db: |
| 95 | dbName: sdnctl |
| 96 | # unused for now to preserve the API |
| 97 | rootPassword: openECOMP1.0 |
| 98 | # rootPasswordExternalSecret: some secret |
| 99 | userName: sdnctl |
| 100 | # unused for now to preserve the API |
| 101 | userPassword: gamma |
| 102 | # userCredentialsExternalSecret: some secret |
| 103 | httpUser: dguser |
| 104 | # unused for now to preserve the API |
| 105 | httpPassword: cc03e747a6afbbcbf8be7668acfebee5 |
| 106 | # httpCredsExternalSecret: some secret |
| 107 | adminUser: dguser |
| 108 | # unused for now to preserve the API |
| 109 | adminPassword: cc03e747a6afbbcbf8be7668acfebee5 |
| 110 | # adminCredsExternalSecret: some secret |
| 111 | nodeUser: dguser |
| 112 | # unused for now to preserve the API |
| 113 | nodePassword: cc03e747a6afbbcbf8be7668acfebee5 |
| 114 | # nodeCredsExternalSecret: some secret |
| 115 | restconfUser: admin |
| 116 | # unused for now to preserve the API |
| 117 | restconfPassword: admin |
| 118 | # restconfCredsExternalSecret: some secret |
| 119 | |
jmac | 4f76af4 | 2018-03-28 20:36:47 +0000 | [diff] [blame] | 120 | dbPodName: mysql-db |
| 121 | dbServiceName: sdnc-dbhost |
jmac | 70863e1 | 2018-05-16 14:53:03 +0000 | [diff] [blame] | 122 | # MD5 hash of dguser password ( default: test123 ) |
| 123 | dgUserPassword: cc03e747a6afbbcbf8be7668acfebee5 |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 124 | |
| 125 | # default number of instances |
| 126 | replicaCount: 1 |
| 127 | |
| 128 | nodeSelector: {} |
| 129 | |
| 130 | affinity: {} |
| 131 | |
| 132 | # probe configuration parameters |
| 133 | liveness: |
| 134 | initialDelaySeconds: 10 |
| 135 | periodSeconds: 10 |
| 136 | # necessary to disable liveness probe when setting breakpoints |
| 137 | # in debugger so K8s doesn't restart unresponsive container |
| 138 | enabled: true |
| 139 | |
| 140 | readiness: |
| 141 | initialDelaySeconds: 10 |
| 142 | periodSeconds: 10 |
| 143 | |
| 144 | service: |
| 145 | type: NodePort |
| 146 | name: dgbuilder |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 147 | portName: dgbuilder |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 148 | externalPort: 3000 |
| 149 | internalPort: 3100 |
| 150 | nodePort: 28 |
| 151 | |
| 152 | ingress: |
| 153 | enabled: false |
Sylvain Desbureaux | e54644e | 2020-05-04 11:45:16 +0200 | [diff] [blame] | 154 | service: |
| 155 | - baseaddr: "dgbuilder" |
| 156 | name: "dgbuilder" |
| 157 | port: 3000 |
| 158 | config: |
| 159 | ssl: "redirect" |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 160 | |
Dan Timoney | cb0a81f | 2020-07-15 17:31:43 -0400 | [diff] [blame] | 161 | # dependency / sub-chart configuration |
| 162 | certInitializer: |
| 163 | nameOverride: dgbuilder-cert-initializer |
| 164 | truststoreMountpath: /opt/onap/ccsdk/dgbuilder/certs |
| 165 | fqdn: "sdnc" |
| 166 | app_ns: "org.osaaf.aaf" |
| 167 | fqi: "sdnc@sdnc.onap.org" |
| 168 | fqi_namespace: org.onap.sdnc |
| 169 | public_fqdn: "dgbuilder.onap.org" |
| 170 | aafDeployFqi: "deployer@people.osaaf.org" |
| 171 | aafDeployPass: demo123456! |
| 172 | cadi_latitude: "38.0" |
| 173 | cadi_longitude: "-72.0" |
| 174 | credsPath: /opt/app/osaaf/local |
| 175 | aaf_add_config: > |
| 176 | cd /opt/app/osaaf/local; |
| 177 | /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.fqi}} {{ .Values.fqdn }} | grep cadi_keystore_password= | cut -d= -f 2 > {{ .Values.credsPath }}/.pass 2>&1 ; |
| 178 | cp {{ .Values.fqi_namespace }}.crt node-cert.pem; |
| 179 | cp {{ .Values.fqi_namespace }}.key node-key.pem; |
| 180 | chmod go+r node-*.pem |
| 181 | |
| 182 | #Resource Limit flavor -By Default using small |
| 183 | flavor: small |
| 184 | #segregation for different envionment (Small and Large) |
| 185 | |
| 186 | resources: |
| 187 | small: |
| 188 | limits: |
| 189 | cpu: 2 |
| 190 | memory: 4Gi |
| 191 | requests: |
| 192 | cpu: 1 |
| 193 | memory: 2Gi |
| 194 | large: |
| 195 | limits: |
| 196 | cpu: 4 |
| 197 | memory: 8Gi |
| 198 | requests: |
| 199 | cpu: 2 |
| 200 | memory: 4Gi |
| 201 | unlimited: {} |
| 202 | |