vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
Andreas Geissler | 7479042 | 2023-02-27 10:31:01 +0100 | [diff] [blame] | 2 | # Modifications © 2023 Deutsche Telekom |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
| 20 | nodePortPrefix: 302 |
Krzysztof Opasiak | 79677d3 | 2020-05-05 01:42:23 +0200 | [diff] [blame] | 21 | |
| 22 | secrets: |
| 23 | - uid: pg-root-pass |
| 24 | name: &pgRootPassSecretName '{{ include "common.release" . }}-vnfsdk-pg-root-pass' |
| 25 | type: password |
| 26 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "vnfsdk-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}' |
| 27 | password: '{{ .Values.postgres.config.pgRootpassword }}' |
| 28 | policy: generate |
| 29 | - uid: pg-user-creds |
| 30 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-vnfsdk-pg-user-creds' |
| 31 | type: basicAuth |
| 32 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "vnfsdk-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 33 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 34 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 35 | passwordPolicy: generate |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 36 | |
| 37 | ################################################################# |
| 38 | # Application configuration defaults. |
| 39 | ################################################################# |
| 40 | # application image |
Bogumil Zebek | 2f87fb7 | 2021-02-26 11:10:55 +0100 | [diff] [blame] | 41 | image: onap/vnfsdk/refrepo:1.6.3 |
Dusan Rozman | 75c07c4 | 2017-09-25 10:28:28 -0400 | [diff] [blame] | 42 | pullPolicy: Always |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 43 | |
jasmineWen | fb56f0f | 2018-08-29 15:55:28 +0000 | [diff] [blame] | 44 | # application configuration override for postgres |
| 45 | postgres: |
jasmineWen | 04aef9a | 2018-04-24 15:56:27 +0000 | [diff] [blame] | 46 | nameOverride: vnfsdk-postgres |
jasmineWen | fb56f0f | 2018-08-29 15:55:28 +0000 | [diff] [blame] | 47 | service: |
| 48 | name: vnfsdk-dbset |
| 49 | name2: vnfsdk-dbpri |
| 50 | name3: vnfsdk-dbrep |
| 51 | container: |
| 52 | name: |
| 53 | primary: vnfsdk-dbpri |
| 54 | replica: vnfsdk-dbrep |
| 55 | persistence: |
| 56 | mountSubPath: vnfsdk/data |
| 57 | mountInitPath: vnfsdk |
| 58 | config: |
| 59 | pgUserName: postgres |
| 60 | pgDatabase: postgres |
Krzysztof Opasiak | 79677d3 | 2020-05-05 01:42:23 +0200 | [diff] [blame] | 61 | pgUserExternalSecret: *pgUserCredsSecretName |
| 62 | pgRootPasswordExternalSecret: *pgRootPassSecretName |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 63 | |
| 64 | # flag to enable debugging - application support required |
| 65 | debugEnabled: false |
| 66 | |
| 67 | nodeSelector: {} |
| 68 | |
| 69 | affinity: {} |
| 70 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 71 | # Resource Limit flavor -By Default using small |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 72 | flavor: small |
| 73 | # Segregation for Different environment (Small and Large) |
| 74 | resources: |
| 75 | small: |
| 76 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 77 | cpu: "2000m" |
| 78 | memory: "4Gi" |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 79 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 80 | cpu: "500m" |
| 81 | memory: "1Gi" |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 82 | large: |
| 83 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 84 | cpu: "4000m" |
| 85 | memory: "8Gi" |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 86 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 87 | cpu: "1000m" |
| 88 | memory: "2Gi" |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 89 | unlimited: {} |
vaibhav_16dec | 0acf518 | 2018-09-19 04:28:55 +0000 | [diff] [blame] | 90 | |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 91 | # probe configuration parameters |
| 92 | liveness: |
| 93 | initialDelaySeconds: 10 |
| 94 | periodSeconds: 10 |
| 95 | # necessary to disable liveness probe when setting breakpoints |
| 96 | # in debugger so K8s doesn't restart unresponsive container |
| 97 | enabled: true |
| 98 | |
| 99 | readiness: |
Bogumil Zebek | 2f87fb7 | 2021-02-26 11:10:55 +0100 | [diff] [blame] | 100 | initialDelaySeconds: 60 |
| 101 | periodSeconds: 30 |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 102 | |
| 103 | service: |
| 104 | type: NodePort |
| 105 | name: refrepo |
Kanagaraj Manickam | e470e7d | 2020-03-05 16:45:54 +0530 | [diff] [blame] | 106 | internalPort: 8703 |
Andreas Geissler | 7479042 | 2023-02-27 10:31:01 +0100 | [diff] [blame] | 107 | ports: |
| 108 | - name: http |
| 109 | port: 8703 |
| 110 | nodePort: '97' |
jasmineWen | 66f6a3b | 2018-04-03 17:48:41 +0000 | [diff] [blame] | 111 | |
| 112 | ingress: |
| 113 | enabled: false |
Lucjan Bryndza | 5bf25c7 | 2019-12-02 14:18:47 +0100 | [diff] [blame] | 114 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 115 | - baseaddr: "vnfsdk-refrepo-api" |
Lucjan Bryndza | 5bf25c7 | 2019-12-02 14:18:47 +0100 | [diff] [blame] | 116 | name: "refrepo" |
Sylvain Desbureaux | 68f1beb | 2020-05-06 15:27:37 +0200 | [diff] [blame] | 117 | port: 8703 |
Lucjan Bryndza | 5bf25c7 | 2019-12-02 14:18:47 +0100 | [diff] [blame] | 118 | config: |
Sylvain Desbureaux | 68f1beb | 2020-05-06 15:27:37 +0200 | [diff] [blame] | 119 | ssl: "redirect" |
Andreas Geissler | 7479042 | 2023-02-27 10:31:01 +0100 | [diff] [blame] | 120 | |
| 121 | readinessCheck: |
| 122 | wait_for: |
| 123 | - '{{ .Values.postgres.nameOverride }}' |
| 124 | |
| 125 | wait_for_job_container: |
| 126 | containers: |
| 127 | - '{{ include "common.name" . }}-job' |