jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [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 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 20 | readinessRepository: oomk8s |
Mahendra Raghuwanshi | b76cb28 | 2019-04-09 10:13:07 +0000 | [diff] [blame] | 21 | readinessImage: readiness-check:2.0.2 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 22 | loggingRepository: docker.elastic.co |
| 23 | loggingImage: beats/filebeat:5.5.0 |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 24 | # envsusbt |
| 25 | envsubstImage: dibi/envsubst |
| 26 | |
| 27 | mariadbGalera: |
| 28 | #This flag allows SO to instantiate its own mariadb-galera cluster |
| 29 | #If shared instance is used, this chart assumes that DB already exists |
| 30 | localCluster: false |
| 31 | service: mariadb-galera |
| 32 | internalPort: 3306 |
| 33 | nameOverride: mariadb-galera |
| 34 | |
| 35 | ################################################################# |
| 36 | # Secrets metaconfig |
| 37 | ################################################################# |
| 38 | secrets: |
| 39 | - uid: db-root-password |
| 40 | type: password |
| 41 | externalSecret: '{{ .Values.global.mariadbGalera.localCluster | ternary (default (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" (index .Values "mariadb-galera" "nameOverride"))) (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)) }}' |
Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 42 | password: '{{ index .Values "mariadb-galera" "config" "mariadbRootPassword" }}' |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 43 | passwordPolicy: required |
| 44 | - uid: db-secret |
| 45 | name: &dbSecretName '{{ include "common.release" . }}-sdnc-portal-db-secret' |
| 46 | type: basicAuth |
| 47 | # This is a nasty trick that allows you override this secret using external one |
| 48 | # with the same field that is used to pass this to subchart |
| 49 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-portal-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}' |
| 50 | login: '{{ index .Values "mariadb-galera" "config" "userName" }}' |
| 51 | password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}' |
| 52 | passwordPolicy: required |
| 53 | - uid: odl-creds |
| 54 | type: basicAuth |
Krzysztof Opasiak | 88e44bf | 2020-02-26 02:23:23 +0100 | [diff] [blame] | 55 | externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}' |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 56 | login: '{{ .Values.config.odlUser }}' |
| 57 | password: '{{ .Values.config.odlPassword }}' |
| 58 | passwordPolicy: required |
| 59 | - uid: fabric-db-creds |
| 60 | type: basicAuth |
Krzysztof Opasiak | 88e44bf | 2020-02-26 02:23:23 +0100 | [diff] [blame] | 61 | externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}' |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 62 | login: '{{ .Values.config.dbFabricUser }}' |
| 63 | password: '{{ .Values.config.dbFabricPassword }}' |
| 64 | passwordPolicy: required |
| 65 | - uid: keystore-password |
| 66 | type: password |
Krzysztof Opasiak | 88e44bf | 2020-02-26 02:23:23 +0100 | [diff] [blame] | 67 | externalSecret: '{{ tpl (default "" .Values.config.KeyStorePwdExternalSecret) . }}' |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 68 | password: '{{ .Values.config.keystorePwd }}' |
| 69 | passwordPolicy: required |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 70 | |
| 71 | ################################################################# |
| 72 | # Application configuration defaults. |
| 73 | ################################################################# |
| 74 | # application image |
| 75 | repository: nexus3.onap.org:10001 |
Timoney, Dan (dt5972) | 6c19848 | 2019-12-03 10:35:51 -0500 | [diff] [blame] | 76 | image: onap/admportal-sdnc-image:1.7.6 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 77 | config: |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 78 | dbFabricDB: mysql |
| 79 | dbFabricUser: admin |
| 80 | dbFabricPassword: admin |
| 81 | # dbFabricDBCredsExternalSecret: some secret |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 82 | sdncChartName: sdnc |
| 83 | configDir: /opt/onap/sdnc/data/properties |
Mahendra Raghuwanshi | b76cb28 | 2019-04-09 10:13:07 +0000 | [diff] [blame] | 84 | storesDir: /opt/onap/sdnc/data/stores |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 85 | odlUser: admin |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 86 | odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 87 | # odlCredsExternalSecret: some secret |
Timoney, Dan (dt5972) | d195e2a | 2019-09-30 15:27:54 -0400 | [diff] [blame] | 88 | keystorePwd: ff^G9D]yf&r}Ktum@BJ0YB?N |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 89 | # keystorePwdExternalSecret: some secret |
| 90 | |
| 91 | mariadb-galera: |
| 92 | config: |
| 93 | userCredentialsExternalSecret: *dbSecretName |
| 94 | userName: sdnctl |
| 95 | userPassword: gamma |
| 96 | mysqlDatabase: sdnctl |
| 97 | nameOverride: sdnc-portal-galera |
| 98 | service: |
| 99 | name: sdnc-portal-galera |
| 100 | portName: sdnc-portal-galera |
Mahendra Raghuwanshi | b76cb28 | 2019-04-09 10:13:07 +0000 | [diff] [blame] | 101 | internalPort: 3306 |
Krzysztof Opasiak | 71c8098 | 2020-02-22 02:12:02 +0100 | [diff] [blame] | 102 | replicaCount: 1 |
| 103 | persistence: |
| 104 | enabled: true |
| 105 | mountSubPath: sdnc-portal/maria/data |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 106 | |
| 107 | # default number of instances |
Timoney, Dan (dt5972) | e2073b4 | 2019-10-23 10:26:18 -0400 | [diff] [blame] | 108 | replicaCount: 0 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 109 | |
| 110 | nodeSelector: {} |
| 111 | |
| 112 | affinity: {} |
| 113 | |
| 114 | # probe configuration parameters |
| 115 | liveness: |
BorislavG | 8d9337a | 2018-06-13 14:56:54 +0000 | [diff] [blame] | 116 | initialDelaySeconds: 180 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 117 | periodSeconds: 10 |
| 118 | # necessary to disable liveness probe when setting breakpoints |
| 119 | # in debugger so K8s doesn't restart unresponsive container |
| 120 | enabled: true |
| 121 | |
| 122 | readiness: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 123 | initialDelaySeconds: 60 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 124 | periodSeconds: 10 |
| 125 | |
| 126 | service: |
| 127 | type: NodePort |
| 128 | name: sdnc-portal |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 129 | portName: sdnc-portal |
Timoney, Dan (dt5972) | 4d01bc3 | 2019-09-05 09:43:15 -0400 | [diff] [blame] | 130 | internalPort: 8443 |
| 131 | externalPort: 8443 |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 132 | nodePort: "01" |
| 133 | |
| 134 | ingress: |
| 135 | enabled: false |
| 136 | |
toshrajbhardwaj | 72b5f0f | 2018-09-13 02:45:22 +0000 | [diff] [blame] | 137 | #Resource limit flavor -By default using small |
| 138 | flavor: small |
| 139 | #segregation for different environment (small and large) |
| 140 | |
| 141 | resources: |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 142 | small: |
| 143 | limits: |
| 144 | cpu: 1 |
| 145 | memory: 1Gi |
| 146 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 147 | cpu: 0.5 |
| 148 | memory: 500Mi |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 149 | large: |
| 150 | limits: |
| 151 | cpu: 2 |
| 152 | memory: 2Gi |
| 153 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 154 | cpu: 1 |
| 155 | memory: 1Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 156 | unlimited: {} |