blob: 42fe9d8f56d2de8e0a2946ed07c01764ffabbaae [file] [log] [blame]
Jack Lucas7723ffe2020-02-13 17:19:01 -05001#============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#################################################################
21global:
22 nodePortPrefix: 302
23 nodePortPrefixExt: 304
Jack Lucas7723ffe2020-02-13 17:19:01 -050024 ingress:
25 enabled: true
26 virtualhost:
27 enabled: false
28#################################################################
29# Secrets metaconfig
30#################################################################
31secrets:
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
43service:
44 type: ClusterIP
45 name: dcaemod-onboarding-api
46 ports:
47 - name: http
Jack Lucas8d8c9b92020-03-30 15:56:46 -040048 port: 8080
Jack Lucas7723ffe2020-02-13 17:19:01 -050049ingress:
50 enabled: true
51 service:
52 - baseaddr: "onboarding"
53 name: dcaemod-onboarding-api
Jack Lucas8d8c9b92020-03-30 15:56:46 -040054 port: 8080
Jack Lucas7723ffe2020-02-13 17:19:01 -050055 config:
56 ssl: "none"
57
58# probe configuration parameters
59liveness:
60 initialDelaySeconds: 60
61 periodSeconds: 30
62 # necessary to disable liveness probe when setting breakpoints
63 # in debugger so K8s doesn't restart unresponsive container
64 enabled: true
65 port: http
66
67readiness:
68 initialDelaySeconds: 60
69 periodSeconds: 20
70 port: http
71 # Should have a proper readiness endpoint or script
72
73# postgres values--overriding defaults in the postgres subchart
74postgres:
75 nameOverride: dcaemod-db
76 service:
77 name: dcaemod-postgres
78 name2: dcaemod-pg-primary
79 name3: dcaemod-pg-replica
80 suffix: svc.cluster.local
81 container:
82 name:
83 primary: dcaemod-pg-primary
84 replica: dcaemod-pg-replica
85 config:
86 pgPrimaryPasswordExternalSecret: *primaryPassSecretName
87 pgRootPasswordExternalSecret: *rootPassSecretName
88 persistence:
89 mountSubPath: dcaemod/data
90 mountInitPath: dcaemod
91
92# application image
vv770d2ec85e32020-09-21 20:16:16 +000093image: onap/org.onap.dcaegen2.platform.mod.onboardingapi:2.12.3
Jack Lucas7723ffe2020-02-13 17:19:01 -050094
95# Resource Limit flavor -By Default using small
96flavor: small
97# Segregation for Different environment (Small and Large)
98resources:
99 small:
100 limits:
101 cpu: 2
102 memory: 2Gi
103 requests:
104 cpu: 1
105 memory: 1Gi
106 large:
107 limits:
108 cpu: 4
109 memory: 4Gi
110 requests:
111 cpu: 2
112 memory: 2Gi
113 unlimited: {}
vv770d601e2b02020-08-17 22:40:00 +0000114