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 | ################################################################# |
| 37 | # Application configuration defaults. |
| 38 | ################################################################# |
| 39 | # application image |
Bogumil Zebek | 2f87fb7 | 2021-02-26 11:10:55 +0100 | [diff] [blame] | 40 | image: onap/vnfsdk/refrepo:1.6.3 |
Dusan Rozman | 75c07c4 | 2017-09-25 10:28:28 -0400 | [diff] [blame] | 41 | pullPolicy: Always |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 42 | |
jasmineWen | fb56f0f | 2018-08-29 15:55:28 +0000 | [diff] [blame] | 43 | # application configuration override for postgres |
| 44 | postgres: |
jasmineWen | 04aef9a | 2018-04-24 15:56:27 +0000 | [diff] [blame] | 45 | nameOverride: vnfsdk-postgres |
jasmineWen | fb56f0f | 2018-08-29 15:55:28 +0000 | [diff] [blame] | 46 | service: |
| 47 | name: vnfsdk-dbset |
| 48 | name2: vnfsdk-dbpri |
| 49 | name3: vnfsdk-dbrep |
| 50 | container: |
| 51 | name: |
| 52 | primary: vnfsdk-dbpri |
| 53 | replica: vnfsdk-dbrep |
| 54 | persistence: |
| 55 | mountSubPath: vnfsdk/data |
| 56 | mountInitPath: vnfsdk |
| 57 | config: |
| 58 | pgUserName: postgres |
| 59 | pgDatabase: postgres |
Krzysztof Opasiak | 79677d3 | 2020-05-05 01:42:23 +0200 | [diff] [blame] | 60 | pgUserExternalSecret: *pgUserCredsSecretName |
| 61 | pgRootPasswordExternalSecret: *pgRootPassSecretName |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 62 | |
| 63 | # flag to enable debugging - application support required |
| 64 | debugEnabled: false |
| 65 | |
| 66 | nodeSelector: {} |
| 67 | |
| 68 | affinity: {} |
| 69 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 70 | # Resource Limit flavor -By Default using small |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 71 | flavor: small |
| 72 | # Segregation for Different environment (Small and Large) |
| 73 | resources: |
| 74 | small: |
| 75 | limits: |
| 76 | cpu: 2000m |
| 77 | memory: 4Gi |
| 78 | requests: |
| 79 | cpu: 500m |
| 80 | memory: 1Gi |
| 81 | large: |
| 82 | limits: |
| 83 | cpu: 4000m |
| 84 | memory: 8Gi |
| 85 | requests: |
| 86 | cpu: 1000m |
| 87 | memory: 2Gi |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 88 | unlimited: {} |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 89 | |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 90 | # probe configuration parameters |
| 91 | liveness: |
| 92 | initialDelaySeconds: 10 |
| 93 | periodSeconds: 10 |
| 94 | # necessary to disable liveness probe when setting breakpoints |
| 95 | # in debugger so K8s doesn't restart unresponsive container |
| 96 | enabled: true |
| 97 | |
| 98 | readiness: |
Bogumil Zebek | 2f87fb7 | 2021-02-26 11:10:55 +0100 | [diff] [blame] | 99 | initialDelaySeconds: 60 |
| 100 | periodSeconds: 30 |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 101 | |
| 102 | service: |
| 103 | type: NodePort |
| 104 | name: refrepo |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 105 | portName: refrepo |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 106 | nodePort: 97 |
Kanagaraj Manickam | e470e7d | 2020-03-05 16:45:54 +0530 | [diff] [blame] | 107 | internalPort: 8703 |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 108 | |
| 109 | ingress: |
| 110 | enabled: false |
Lucjan Bryndza | 5bf25c7 | 2019-12-02 14:18:47 +0100 | [diff] [blame] | 111 | service: |
| 112 | - baseaddr: "refrepo" |
| 113 | name: "refrepo" |
Sylvain Desbureaux | 68f1beb | 2020-05-06 15:27:37 +0200 | [diff] [blame] | 114 | port: 8703 |
Lucjan Bryndza | 5bf25c7 | 2019-12-02 14:18:47 +0100 | [diff] [blame] | 115 | config: |
Sylvain Desbureaux | 68f1beb | 2020-05-06 15:27:37 +0200 | [diff] [blame] | 116 | ssl: "redirect" |