[COMMON] Configure paths for Ingress
[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     virtualhost:
27       baseurl: "simpledemo.onap.org"
28
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   enabledOverride: true
53   service:
54   - baseaddr: "dcaemod"
55     path: "/onboarding"
56     name: dcaemod-onboarding-api
57     port: 8080
58   config:
59     ssl: "none"
60
61 # probe configuration parameters
62 liveness:
63   initialDelaySeconds: 60
64   periodSeconds: 30
65   # necessary to disable liveness probe when setting breakpoints
66   # in debugger so K8s doesn't restart unresponsive container
67   enabled: true
68   port: http
69
70 readiness:
71   initialDelaySeconds: 60
72   periodSeconds: 20
73   port: http
74   # Should have a proper readiness endpoint or script
75
76 # postgres values--overriding defaults in the postgres subchart
77 postgres:
78     nameOverride: dcaemod-db
79     service:
80       name: dcaemod-postgres
81       name2: dcaemod-pg-primary
82       name3: dcaemod-pg-replica
83     suffix: svc.cluster.local
84     container:
85       name:
86         primary: dcaemod-pg-primary
87         replica: dcaemod-pg-replica
88     config:
89       pgPrimaryPasswordExternalSecret: *primaryPassSecretName
90       pgRootPasswordExternalSecret: *rootPassSecretName
91     persistence:
92       mountSubPath: dcaemod/data
93       mountInitPath: dcaemod
94
95 # application image
96 repository: nexus3.onap.org:10001
97 image: onap/org.onap.dcaegen2.platform.mod.onboardingapi:2.12.3
98
99 # Resource Limit flavor -By Default using small
100 flavor: small
101 # Segregation for Different environment (Small and Large)
102 resources:
103   small:
104     limits:
105       cpu: 2
106       memory: 2Gi
107     requests:
108       cpu: 1
109       memory: 1Gi
110   large:
111     limits:
112       cpu: 4
113       memory: 4Gi
114     requests:
115       cpu: 2
116       memory: 2Gi
117   unlimited: {}
118