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 | |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 23 | # image pull policy |
| 24 | pullPolicy: Always |
| 25 | |
| 26 | # default mount path root directory referenced |
| 27 | # by persistent volumes and log files |
| 28 | persistence: |
| 29 | mountPath: /dockerdata-nfs |
| 30 | |
| 31 | # flag to enable debugging - application support required |
| 32 | debugEnabled: true |
jmac | 4f76af4 | 2018-03-28 20:36:47 +0000 | [diff] [blame] | 33 | |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 34 | ################################################################# |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 35 | # Secrets metaconfig |
| 36 | ################################################################# |
| 37 | secrets: |
| 38 | - uid: 'db-root-password' |
| 39 | type: password |
| 40 | externalSecret: '{{ tpl (default "" .Values.config.db.rootPasswordExternalSecret) . }}' |
Krzysztof Opasiak | 67b5d86 | 2020-04-24 20:41:24 +0200 | [diff] [blame] | 41 | password: '{{ .Values.config.db.rootPassword }}' |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 42 | - uid: 'db-user-creds' |
| 43 | type: basicAuth |
| 44 | externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}' |
| 45 | login: '{{ .Values.config.db.userName }}' |
Krzysztof Opasiak | 67b5d86 | 2020-04-24 20:41:24 +0200 | [diff] [blame] | 46 | password: '{{ .Values.config.db.userPassword }}' |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 47 | - uid: 'http-user-creds' |
| 48 | type: basicAuth |
| 49 | externalSecret: '{{ tpl (default "" .Values.config.httpCredsExternalSecret) . }}' |
| 50 | login: '{{ .Values.config.httpUser }}' |
| 51 | password: '{{ .Values.config.dgUserPassword }}' |
| 52 | - uid: 'admin-creds' |
| 53 | type: basicAuth |
| 54 | externalSecret: '{{ tpl (default "" .Values.config.adminCredsExternalSecret) . }}' |
| 55 | login: '{{ .Values.config.adminUser }}' |
| 56 | password: '{{ .Values.config.dgUserPassword }}' |
| 57 | - uid: 'node-creds' |
| 58 | type: basicAuth |
| 59 | externalSecret: '{{ tpl (default "" .Values.config.nodeCredsExternalSecret) . }}' |
| 60 | login: '{{ .Values.config.nodeUser }}' |
| 61 | password: '{{ .Values.config.dgUserPassword }}' |
| 62 | - uid: 'restconf-creds' |
| 63 | type: basicAuth |
| 64 | externalSecret: '{{ tpl (default "" .Values.config.restconfCredsExternalSecret) . }}' |
| 65 | login: '{{ .Values.config.restconfUser }}' |
| 66 | password: '{{ .Values.config.restconfPassword }}' |
| 67 | |
| 68 | ################################################################# |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 69 | # Application configuration defaults. |
| 70 | ################################################################# |
| 71 | # application image |
Dan Timoney | c614482 | 2023-04-27 10:17:20 -0400 | [diff] [blame] | 72 | image: onap/ccsdk-dgbuilder-image:1.5.1 |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 73 | pullPolicy: Always |
| 74 | |
| 75 | # flag to enable debugging - application support required |
| 76 | debugEnabled: false |
| 77 | |
| 78 | # application configuration |
| 79 | config: |
Krzysztof Opasiak | acdd90c | 2020-02-17 22:05:51 +0100 | [diff] [blame] | 80 | db: |
| 81 | dbName: sdnctl |
| 82 | # unused for now to preserve the API |
| 83 | rootPassword: openECOMP1.0 |
| 84 | # rootPasswordExternalSecret: some secret |
| 85 | userName: sdnctl |
| 86 | # unused for now to preserve the API |
| 87 | userPassword: gamma |
| 88 | # userCredentialsExternalSecret: some secret |
| 89 | httpUser: dguser |
| 90 | # unused for now to preserve the API |
| 91 | httpPassword: cc03e747a6afbbcbf8be7668acfebee5 |
| 92 | # httpCredsExternalSecret: some secret |
| 93 | adminUser: dguser |
| 94 | # unused for now to preserve the API |
| 95 | adminPassword: cc03e747a6afbbcbf8be7668acfebee5 |
| 96 | # adminCredsExternalSecret: some secret |
| 97 | nodeUser: dguser |
| 98 | # unused for now to preserve the API |
| 99 | nodePassword: cc03e747a6afbbcbf8be7668acfebee5 |
| 100 | # nodeCredsExternalSecret: some secret |
| 101 | restconfUser: admin |
| 102 | # unused for now to preserve the API |
| 103 | restconfPassword: admin |
| 104 | # restconfCredsExternalSecret: some secret |
| 105 | |
jmac | 4f76af4 | 2018-03-28 20:36:47 +0000 | [diff] [blame] | 106 | dbPodName: mysql-db |
| 107 | dbServiceName: sdnc-dbhost |
jmac | 70863e1 | 2018-05-16 14:53:03 +0000 | [diff] [blame] | 108 | # MD5 hash of dguser password ( default: test123 ) |
| 109 | dgUserPassword: cc03e747a6afbbcbf8be7668acfebee5 |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 110 | |
| 111 | # default number of instances |
| 112 | replicaCount: 1 |
| 113 | |
| 114 | nodeSelector: {} |
| 115 | |
| 116 | affinity: {} |
| 117 | |
| 118 | # probe configuration parameters |
| 119 | liveness: |
| 120 | initialDelaySeconds: 10 |
| 121 | periodSeconds: 10 |
| 122 | # necessary to disable liveness probe when setting breakpoints |
| 123 | # in debugger so K8s doesn't restart unresponsive container |
| 124 | enabled: true |
| 125 | |
| 126 | readiness: |
| 127 | initialDelaySeconds: 10 |
| 128 | periodSeconds: 10 |
| 129 | |
| 130 | service: |
| 131 | type: NodePort |
| 132 | name: dgbuilder |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 133 | internalPort: 3100 |
Andreas Geissler | 2af5079 | 2023-03-27 17:11:27 +0200 | [diff] [blame] | 134 | ports: |
| 135 | - name: http |
| 136 | port: 3100 |
| 137 | nodePort: 28 |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 138 | |
| 139 | ingress: |
| 140 | enabled: false |
Sylvain Desbureaux | e54644e | 2020-05-04 11:45:16 +0200 | [diff] [blame] | 141 | service: |
| 142 | - baseaddr: "dgbuilder" |
| 143 | name: "dgbuilder" |
Andreas Geissler | 2af5079 | 2023-03-27 17:11:27 +0200 | [diff] [blame] | 144 | port: 3100 |
Sylvain Desbureaux | e54644e | 2020-05-04 11:45:16 +0200 | [diff] [blame] | 145 | config: |
| 146 | ssl: "redirect" |
Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 147 | |
Dan Timoney | cb0a81f | 2020-07-15 17:31:43 -0400 | [diff] [blame] | 148 | #Resource Limit flavor -By Default using small |
| 149 | flavor: small |
| 150 | #segregation for different envionment (Small and Large) |
| 151 | |
| 152 | resources: |
| 153 | small: |
| 154 | limits: |
| 155 | cpu: 2 |
| 156 | memory: 4Gi |
| 157 | requests: |
| 158 | cpu: 1 |
| 159 | memory: 2Gi |
| 160 | large: |
| 161 | limits: |
| 162 | cpu: 4 |
| 163 | memory: 8Gi |
| 164 | requests: |
| 165 | cpu: 2 |
| 166 | memory: 4Gi |
| 167 | unlimited: {} |
| 168 | |
farida azmy | dc9aef0 | 2021-04-07 17:07:09 +0200 | [diff] [blame] | 169 | #Pods Service Account |
| 170 | serviceAccount: |
| 171 | nameOverride: dgbuilder |
| 172 | roles: |
| 173 | - read |