vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +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 | |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
Krzysztof Opasiak | 79677d3 | 2020-05-05 01:42:23 +0200 | [diff] [blame] | 20 | |
| 21 | secrets: |
| 22 | - uid: pg-root-pass |
| 23 | name: &pgRootPassSecretName '{{ include "common.release" . }}-vnfsdk-pg-root-pass' |
| 24 | type: password |
| 25 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "vnfsdk-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}' |
| 26 | password: '{{ .Values.postgres.config.pgRootpassword }}' |
| 27 | policy: generate |
| 28 | - uid: pg-user-creds |
| 29 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-vnfsdk-pg-user-creds' |
| 30 | type: basicAuth |
| 31 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "vnfsdk-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 32 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 33 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 34 | passwordPolicy: generate |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 35 | |
| 36 | ################################################################# |
Sylvain Desbureaux | 554bc6b | 2021-02-25 18:13:19 +0100 | [diff] [blame] | 37 | # AAF part |
| 38 | ################################################################# |
| 39 | certInitializer: |
| 40 | nameOverride: refrepo-cert-initializer |
| 41 | aafDeployFqi: deployer@people.osaaf.org |
| 42 | aafDeployPass: demo123456! |
| 43 | # aafDeployCredsExternalSecret: some secret |
| 44 | fqdn: refrepo |
| 45 | fqi: refrepo@refrepo.onap.org |
| 46 | fqi_namespace: org.onap.refrepo |
| 47 | public_fqdn: refrepo.onap.org |
| 48 | cadi_longitude: "0.0" |
| 49 | cadi_latitude: "0.0" |
| 50 | app_ns: org.osaaf.aaf |
| 51 | credsPath: /opt/app/osaaf/local |
| 52 | aaf_add_config: | |
| 53 | echo "*** transform AAF certs into pem files" |
| 54 | mkdir -p {{ .Values.credsPath }}/certs |
| 55 | echo "keystore password: $$cadi_keystore_password_p12" |
| 56 | openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \ |
| 57 | -nokeys -out {{ .Values.credsPath }}/certs/cert.pem \ |
| 58 | -passin pass:$cadi_keystore_password_p12 \ |
| 59 | -passout pass:$cadi_keystore_password_p12 |
| 60 | echo "*** copy key" |
| 61 | cp {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.key \ |
| 62 | {{ .Values.credsPath }}/certs/cert.key |
| 63 | echo "*** change ownership of certificates to targeted user" |
| 64 | chown -R 999 {{ .Values.credsPath }}/certs |
| 65 | |
| 66 | |
| 67 | ################################################################# |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 68 | # Application configuration defaults. |
| 69 | ################################################################# |
| 70 | # application image |
Bogumil Zebek | 2f87fb7 | 2021-02-26 11:10:55 +0100 | [diff] [blame] | 71 | image: onap/vnfsdk/refrepo:1.6.3 |
Dusan Rozman | 75c07c4 | 2017-09-25 10:28:28 -0400 | [diff] [blame] | 72 | pullPolicy: Always |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 73 | |
jasmineWen | fb56f0f | 2018-08-29 15:55:28 +0000 | [diff] [blame] | 74 | # application configuration override for postgres |
| 75 | postgres: |
jasmineWen | 04aef9a | 2018-04-24 15:56:27 +0000 | [diff] [blame] | 76 | nameOverride: vnfsdk-postgres |
jasmineWen | fb56f0f | 2018-08-29 15:55:28 +0000 | [diff] [blame] | 77 | service: |
| 78 | name: vnfsdk-dbset |
| 79 | name2: vnfsdk-dbpri |
| 80 | name3: vnfsdk-dbrep |
| 81 | container: |
| 82 | name: |
| 83 | primary: vnfsdk-dbpri |
| 84 | replica: vnfsdk-dbrep |
| 85 | persistence: |
| 86 | mountSubPath: vnfsdk/data |
| 87 | mountInitPath: vnfsdk |
| 88 | config: |
| 89 | pgUserName: postgres |
| 90 | pgDatabase: postgres |
Krzysztof Opasiak | 79677d3 | 2020-05-05 01:42:23 +0200 | [diff] [blame] | 91 | pgUserExternalSecret: *pgUserCredsSecretName |
| 92 | pgRootPasswordExternalSecret: *pgRootPassSecretName |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 93 | |
| 94 | # flag to enable debugging - application support required |
| 95 | debugEnabled: false |
| 96 | |
| 97 | nodeSelector: {} |
| 98 | |
| 99 | affinity: {} |
| 100 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 101 | # Resource Limit flavor -By Default using small |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 102 | flavor: small |
| 103 | # Segregation for Different environment (Small and Large) |
| 104 | resources: |
| 105 | small: |
| 106 | limits: |
| 107 | cpu: 2000m |
| 108 | memory: 4Gi |
| 109 | requests: |
| 110 | cpu: 500m |
| 111 | memory: 1Gi |
| 112 | large: |
| 113 | limits: |
| 114 | cpu: 4000m |
| 115 | memory: 8Gi |
| 116 | requests: |
| 117 | cpu: 1000m |
| 118 | memory: 2Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 119 | unlimited: {} |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 120 | |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 121 | # probe configuration parameters |
| 122 | liveness: |
| 123 | initialDelaySeconds: 10 |
| 124 | periodSeconds: 10 |
| 125 | # necessary to disable liveness probe when setting breakpoints |
| 126 | # in debugger so K8s doesn't restart unresponsive container |
| 127 | enabled: true |
| 128 | |
| 129 | readiness: |
Bogumil Zebek | 2f87fb7 | 2021-02-26 11:10:55 +0100 | [diff] [blame] | 130 | initialDelaySeconds: 60 |
| 131 | periodSeconds: 30 |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 132 | |
| 133 | service: |
| 134 | type: NodePort |
| 135 | name: refrepo |
Sylvain Desbureaux | 554bc6b | 2021-02-25 18:13:19 +0100 | [diff] [blame] | 136 | portName: https |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 137 | nodePort: 97 |
Kanagaraj Manickam | e470e7d | 2020-03-05 16:45:54 +0530 | [diff] [blame] | 138 | internalPort: 8703 |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 139 | |
| 140 | ingress: |
| 141 | enabled: false |
Lucjan Bryndza | 5bf25c7 | 2019-12-02 14:18:47 +0100 | [diff] [blame] | 142 | service: |
| 143 | - baseaddr: "refrepo" |
| 144 | name: "refrepo" |
Sylvain Desbureaux | 68f1beb | 2020-05-06 15:27:37 +0200 | [diff] [blame] | 145 | port: 8703 |
Lucjan Bryndza | 5bf25c7 | 2019-12-02 14:18:47 +0100 | [diff] [blame] | 146 | config: |
Sylvain Desbureaux | 68f1beb | 2020-05-06 15:27:37 +0200 | [diff] [blame] | 147 | ssl: "redirect" |