Merge "[VFC] Uses new tpls for repos / images"
[oom.git] / kubernetes / dcaemod / components / dcaemod-onboarding-api / values.yaml
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
24   readinessImage: onap/oom/readiness:3.0.1
25   ingress:
26     enabled: true
27     virtualhost:
28         enabled: false
29 #################################################################
30 # Secrets metaconfig
31 #################################################################
32 secrets:
33   - uid: db-root-pass
34     name: &rootPassSecretName '{{ include "common.release" . }}-dcaemod-db-root-pass'
35     type: password
36     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "dcaemod-db-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret)}}'
37     password: '{{ .Values.postgres.config.pgRootPassword }}'
38   - uid: db-primary-pass
39     name: &primaryPassSecretName '{{ include "common.release" . }}-dcaemod-db-primary-pass'
40     type: password
41     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgPrimaryPasswordExternalSecret) .) (hasSuffix "dcaemod-db-primary-pass" .Values.postgres.config.pgPrimaryPasswordExternalSecret)}}'
42     password: '{{ .Values.postgres.config.pgPrimaryPassword }}'
43
44 service:
45   type: ClusterIP
46   name: dcaemod-onboarding-api
47   ports:
48     - name: http
49       port: 8080
50 ingress:
51   enabled: true
52   service:
53   - baseaddr: "onboarding"
54     name: dcaemod-onboarding-api
55     port: 8080
56   config:
57     ssl: "none"
58
59 # probe configuration parameters
60 liveness:
61   initialDelaySeconds: 60
62   periodSeconds: 30
63   # necessary to disable liveness probe when setting breakpoints
64   # in debugger so K8s doesn't restart unresponsive container
65   enabled: true
66   port: http
67
68 readiness:
69   initialDelaySeconds: 60
70   periodSeconds: 20
71   port: http
72   # Should have a proper readiness endpoint or script
73
74 # postgres values--overriding defaults in the postgres subchart
75 postgres:
76     nameOverride: dcaemod-db
77     service:
78       name: dcaemod-postgres
79       name2: dcaemod-pg-primary
80       name3: dcaemod-pg-replica
81     suffix: svc.cluster.local
82     container:
83       name:
84         primary: dcaemod-pg-primary
85         replica: dcaemod-pg-replica
86     config:
87       pgPrimaryPasswordExternalSecret: *primaryPassSecretName
88       pgRootPasswordExternalSecret: *rootPassSecretName
89     persistence:
90       mountSubPath: dcaemod/data
91       mountInitPath: dcaemod
92
93 # application image
94 repository: nexus3.onap.org:10001
95 image: onap/org.onap.dcaegen2.platform.mod.onboardingapi:2.12.3
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: {}
116