blob: 28880646fb9c242ccecde8c090b5c205e7ffc9ab [file] [log] [blame]
vaibhavjayasea9aee02018-08-31 06:22:26 +00001# Copyright © 2018 AT&T, Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Mike Elliott13fed112018-02-28 08:33:33 -050015# Global configuration default values that can be inherited by
16# all subcharts.
17#################################################################
18global:
19 # Change to an unused port prefix range to prevent port conflicts
20 # with other instances running within the same k8s cluster
21 nodePortPrefix: 302
22
Mike Elliott13fed112018-02-28 08:33:33 -050023 # image pull policy
24 pullPolicy: Always
25
26 # default mount path root directory referenced
27 # by persistent volumes and log files
28 persistence:
29 mountPath: /dockerdata-nfs
30
31 # flag to enable debugging - application support required
32 debugEnabled: true
jmac4f76af42018-03-28 20:36:47 +000033
Mike Elliott13fed112018-02-28 08:33:33 -050034#################################################################
Krzysztof Opasiakacdd90c2020-02-17 22:05:51 +010035# Secrets metaconfig
36#################################################################
37secrets:
38 - uid: 'db-root-password'
39 type: password
40 externalSecret: '{{ tpl (default "" .Values.config.db.rootPasswordExternalSecret) . }}'
Krzysztof Opasiak67b5d862020-04-24 20:41:24 +020041 password: '{{ .Values.config.db.rootPassword }}'
Krzysztof Opasiakacdd90c2020-02-17 22:05:51 +010042 - uid: 'db-user-creds'
43 type: basicAuth
44 externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
45 login: '{{ .Values.config.db.userName }}'
Krzysztof Opasiak67b5d862020-04-24 20:41:24 +020046 password: '{{ .Values.config.db.userPassword }}'
Krzysztof Opasiakacdd90c2020-02-17 22:05:51 +010047 - uid: 'http-user-creds'
48 type: basicAuth
49 externalSecret: '{{ tpl (default "" .Values.config.httpCredsExternalSecret) . }}'
50 login: '{{ .Values.config.httpUser }}'
51 password: '{{ .Values.config.dgUserPassword }}'
52 - uid: 'admin-creds'
53 type: basicAuth
54 externalSecret: '{{ tpl (default "" .Values.config.adminCredsExternalSecret) . }}'
55 login: '{{ .Values.config.adminUser }}'
56 password: '{{ .Values.config.dgUserPassword }}'
57 - uid: 'node-creds'
58 type: basicAuth
59 externalSecret: '{{ tpl (default "" .Values.config.nodeCredsExternalSecret) . }}'
60 login: '{{ .Values.config.nodeUser }}'
61 password: '{{ .Values.config.dgUserPassword }}'
62 - uid: 'restconf-creds'
63 type: basicAuth
64 externalSecret: '{{ tpl (default "" .Values.config.restconfCredsExternalSecret) . }}'
65 login: '{{ .Values.config.restconfUser }}'
66 password: '{{ .Values.config.restconfPassword }}'
67
68#################################################################
Mike Elliott13fed112018-02-28 08:33:33 -050069# Application configuration defaults.
70#################################################################
71# application image
Dan Timoneybd248f02020-11-03 11:53:08 -050072image: onap/ccsdk-dgbuilder-image:1.0.2
Mike Elliott13fed112018-02-28 08:33:33 -050073pullPolicy: Always
74
75# flag to enable debugging - application support required
76debugEnabled: false
77
78# application configuration
79config:
Krzysztof Opasiakacdd90c2020-02-17 22:05:51 +010080 db:
81 dbName: sdnctl
82 # unused for now to preserve the API
83 rootPassword: openECOMP1.0
84 # rootPasswordExternalSecret: some secret
85 userName: sdnctl
86 # unused for now to preserve the API
87 userPassword: gamma
88 # userCredentialsExternalSecret: some secret
89 httpUser: dguser
90 # unused for now to preserve the API
91 httpPassword: cc03e747a6afbbcbf8be7668acfebee5
92 # httpCredsExternalSecret: some secret
93 adminUser: dguser
94 # unused for now to preserve the API
95 adminPassword: cc03e747a6afbbcbf8be7668acfebee5
96 # adminCredsExternalSecret: some secret
97 nodeUser: dguser
98 # unused for now to preserve the API
99 nodePassword: cc03e747a6afbbcbf8be7668acfebee5
100 # nodeCredsExternalSecret: some secret
101 restconfUser: admin
102 # unused for now to preserve the API
103 restconfPassword: admin
104 # restconfCredsExternalSecret: some secret
105
jmac4f76af42018-03-28 20:36:47 +0000106 dbPodName: mysql-db
107 dbServiceName: sdnc-dbhost
jmac70863e12018-05-16 14:53:03 +0000108 # MD5 hash of dguser password ( default: test123 )
109 dgUserPassword: cc03e747a6afbbcbf8be7668acfebee5
Mike Elliott13fed112018-02-28 08:33:33 -0500110
111# default number of instances
112replicaCount: 1
113
114nodeSelector: {}
115
116affinity: {}
117
118# probe configuration parameters
119liveness:
120 initialDelaySeconds: 10
121 periodSeconds: 10
122 # necessary to disable liveness probe when setting breakpoints
123 # in debugger so K8s doesn't restart unresponsive container
124 enabled: true
125
126readiness:
127 initialDelaySeconds: 10
128 periodSeconds: 10
129
130service:
131 type: NodePort
132 name: dgbuilder
BorislavG1ffbd992018-04-24 07:56:27 +0000133 portName: dgbuilder
Mike Elliott13fed112018-02-28 08:33:33 -0500134 externalPort: 3000
135 internalPort: 3100
136 nodePort: 28
137
138ingress:
139 enabled: false
Sylvain Desbureauxe54644e2020-05-04 11:45:16 +0200140 service:
141 - baseaddr: "dgbuilder"
142 name: "dgbuilder"
143 port: 3000
144 config:
145 ssl: "redirect"
Mike Elliott13fed112018-02-28 08:33:33 -0500146
Dan Timoneycb0a81f2020-07-15 17:31:43 -0400147 # dependency / sub-chart configuration
148certInitializer:
149 nameOverride: dgbuilder-cert-initializer
150 truststoreMountpath: /opt/onap/ccsdk/dgbuilder/certs
151 fqdn: "sdnc"
152 app_ns: "org.osaaf.aaf"
153 fqi: "sdnc@sdnc.onap.org"
154 fqi_namespace: org.onap.sdnc
155 public_fqdn: "dgbuilder.onap.org"
156 aafDeployFqi: "deployer@people.osaaf.org"
157 aafDeployPass: demo123456!
158 cadi_latitude: "38.0"
159 cadi_longitude: "-72.0"
160 credsPath: /opt/app/osaaf/local
161 aaf_add_config: >
162 cd /opt/app/osaaf/local;
163 /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.fqi}} {{ .Values.fqdn }} | grep cadi_keystore_password= | cut -d= -f 2 > {{ .Values.credsPath }}/.pass 2>&1 ;
164 cp {{ .Values.fqi_namespace }}.crt node-cert.pem;
165 cp {{ .Values.fqi_namespace }}.key node-key.pem;
166 chmod go+r node-*.pem
167
168#Resource Limit flavor -By Default using small
169flavor: small
170#segregation for different envionment (Small and Large)
171
172resources:
173 small:
174 limits:
175 cpu: 2
176 memory: 4Gi
177 requests:
178 cpu: 1
179 memory: 2Gi
180 large:
181 limits:
182 cpu: 4
183 memory: 8Gi
184 requests:
185 cpu: 2
186 memory: 4Gi
187 unlimited: {}
188