Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 1 | #============LICENSE_START======================================================== |
| 2 | #================================================================================= |
| 3 | # Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved. |
| 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # ============LICENSE_END========================================================= |
| 17 | |
| 18 | ################################################################# |
| 19 | # Global configuration defaults. |
| 20 | ################################################################# |
| 21 | global: |
| 22 | nodePortPrefix: 302 |
| 23 | nodePortPrefixExt: 304 |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 24 | ingress: |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 25 | virtualhost: |
Sylvain Desbureaux | afae229 | 2020-12-08 10:48:29 +0100 | [diff] [blame] | 26 | baseurl: "simpledemo.onap.org" |
| 27 | |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 28 | ################################################################# |
| 29 | # Secrets metaconfig |
| 30 | ################################################################# |
| 31 | secrets: |
| 32 | - uid: db-root-pass |
| 33 | name: &rootPassSecretName '{{ include "common.release" . }}-dcaemod-db-root-pass' |
| 34 | type: password |
| 35 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "dcaemod-db-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret)}}' |
| 36 | password: '{{ .Values.postgres.config.pgRootPassword }}' |
| 37 | - uid: db-primary-pass |
| 38 | name: &primaryPassSecretName '{{ include "common.release" . }}-dcaemod-db-primary-pass' |
| 39 | type: password |
| 40 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgPrimaryPasswordExternalSecret) .) (hasSuffix "dcaemod-db-primary-pass" .Values.postgres.config.pgPrimaryPasswordExternalSecret)}}' |
| 41 | password: '{{ .Values.postgres.config.pgPrimaryPassword }}' |
| 42 | |
| 43 | service: |
| 44 | type: ClusterIP |
| 45 | name: dcaemod-onboarding-api |
| 46 | ports: |
| 47 | - name: http |
Jack Lucas | 8d8c9b9 | 2020-03-30 15:56:46 -0400 | [diff] [blame] | 48 | port: 8080 |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 49 | ingress: |
| 50 | enabled: true |
Sylvain Desbureaux | afae229 | 2020-12-08 10:48:29 +0100 | [diff] [blame] | 51 | enabledOverride: true |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 52 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame^] | 53 | - baseaddr: "dcaemod-onboarding-api" |
Sylvain Desbureaux | afae229 | 2020-12-08 10:48:29 +0100 | [diff] [blame] | 54 | path: "/onboarding" |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 55 | name: dcaemod-onboarding-api |
Jack Lucas | 8d8c9b9 | 2020-03-30 15:56:46 -0400 | [diff] [blame] | 56 | port: 8080 |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 57 | config: |
| 58 | ssl: "none" |
| 59 | |
| 60 | # probe configuration parameters |
| 61 | liveness: |
| 62 | initialDelaySeconds: 60 |
| 63 | periodSeconds: 30 |
| 64 | # necessary to disable liveness probe when setting breakpoints |
| 65 | # in debugger so K8s doesn't restart unresponsive container |
| 66 | enabled: true |
| 67 | port: http |
| 68 | |
| 69 | readiness: |
| 70 | initialDelaySeconds: 60 |
| 71 | periodSeconds: 20 |
| 72 | port: http |
| 73 | # Should have a proper readiness endpoint or script |
| 74 | |
| 75 | # postgres values--overriding defaults in the postgres subchart |
| 76 | postgres: |
| 77 | nameOverride: dcaemod-db |
| 78 | service: |
| 79 | name: dcaemod-postgres |
| 80 | name2: dcaemod-pg-primary |
| 81 | name3: dcaemod-pg-replica |
| 82 | suffix: svc.cluster.local |
| 83 | container: |
| 84 | name: |
| 85 | primary: dcaemod-pg-primary |
| 86 | replica: dcaemod-pg-replica |
| 87 | config: |
| 88 | pgPrimaryPasswordExternalSecret: *primaryPassSecretName |
| 89 | pgRootPasswordExternalSecret: *rootPassSecretName |
| 90 | persistence: |
| 91 | mountSubPath: dcaemod/data |
| 92 | mountInitPath: dcaemod |
| 93 | |
| 94 | # application image |
Vijay Venkatesh Kumar | 2091000 | 2021-09-07 12:19:48 -0400 | [diff] [blame] | 95 | image: onap/org.onap.dcaegen2.platform.mod.onboardingapi:2.13.0 |
Jack Lucas | 7723ffe | 2020-02-13 17:19:01 -0500 | [diff] [blame] | 96 | |
| 97 | # Resource Limit flavor -By Default using small |
| 98 | flavor: small |
| 99 | # Segregation for Different environment (Small and Large) |
| 100 | resources: |
| 101 | small: |
| 102 | limits: |
| 103 | cpu: 2 |
| 104 | memory: 2Gi |
| 105 | requests: |
| 106 | cpu: 1 |
| 107 | memory: 1Gi |
| 108 | large: |
| 109 | limits: |
| 110 | cpu: 4 |
| 111 | memory: 4Gi |
| 112 | requests: |
| 113 | cpu: 2 |
| 114 | memory: 2Gi |
| 115 | unlimited: {} |
vv770d | 601e2b0 | 2020-08-17 22:40:00 +0000 | [diff] [blame] | 116 | |
farida azmy | 5093301 | 2021-09-12 12:56:40 +0200 | [diff] [blame] | 117 | #Pods Service Account |
| 118 | serviceAccount: |
| 119 | nameOverride: dcaemod-onboarding-api |
| 120 | roles: |
| 121 | - read |
| 122 | |