Merge "[SO] Bump container versions to 1.7.9 "
[oom.git] / kubernetes / common / dgbuilder / values.yaml
1 # 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
15 # Global configuration default values that can be inherited by
16 # all subcharts.
17 #################################################################
18 global:
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
23   # image repositories
24   repository: nexus3.onap.org:10001
25
26   # readiness check
27   readinessImage: onap/oom/readiness:3.0.1
28
29   # logging agent
30   loggingRepository: docker.elastic.co
31   loggingImage: beats/filebeat:5.5.0
32
33   # envsusbt
34   envsubstImage: dibi/envsubst
35
36   # image pull policy
37   pullPolicy: Always
38
39   # default mount path root directory referenced
40   # by persistent volumes and log files
41   persistence:
42     mountPath: /dockerdata-nfs
43
44   # flag to enable debugging - application support required
45   debugEnabled: true
46
47 #################################################################
48 # Secrets metaconfig
49 #################################################################
50 secrets:
51   - uid: 'db-root-password'
52     type: password
53     externalSecret: '{{ tpl (default "" .Values.config.db.rootPasswordExternalSecret) . }}'
54     password: '{{ .Values.config.db.rootPassword }}'
55   - uid: 'db-user-creds'
56     type: basicAuth
57     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
58     login: '{{ .Values.config.db.userName }}'
59     password: '{{ .Values.config.db.userPassword }}'
60   - uid: 'http-user-creds'
61     type: basicAuth
62     externalSecret: '{{ tpl (default "" .Values.config.httpCredsExternalSecret) . }}'
63     login: '{{ .Values.config.httpUser }}'
64     password: '{{ .Values.config.dgUserPassword }}'
65   - uid: 'admin-creds'
66     type: basicAuth
67     externalSecret: '{{ tpl (default "" .Values.config.adminCredsExternalSecret) . }}'
68     login: '{{ .Values.config.adminUser }}'
69     password: '{{ .Values.config.dgUserPassword }}'
70   - uid: 'node-creds'
71     type: basicAuth
72     externalSecret: '{{ tpl (default "" .Values.config.nodeCredsExternalSecret) . }}'
73     login: '{{ .Values.config.nodeUser }}'
74     password: '{{ .Values.config.dgUserPassword }}'
75   - uid: 'restconf-creds'
76     type: basicAuth
77     externalSecret: '{{ tpl (default "" .Values.config.restconfCredsExternalSecret) . }}'
78     login: '{{ .Values.config.restconfUser }}'
79     password: '{{ .Values.config.restconfPassword }}'
80
81 #################################################################
82 # Application configuration defaults.
83 #################################################################
84 # application image
85 repository: nexus3.onap.org:10001
86 image: onap/ccsdk-dgbuilder-image:1.0.2
87 pullPolicy: Always
88
89 # flag to enable debugging - application support required
90 debugEnabled: false
91
92 # application configuration
93 config:
94   db:
95     dbName: sdnctl
96     # unused for now to preserve the API
97     rootPassword: openECOMP1.0
98     # rootPasswordExternalSecret: some secret
99     userName: sdnctl
100     # unused for now to preserve the API
101     userPassword: gamma
102     # userCredentialsExternalSecret: some secret
103   httpUser: dguser
104   # unused for now to preserve the API
105   httpPassword: cc03e747a6afbbcbf8be7668acfebee5
106   # httpCredsExternalSecret: some secret
107   adminUser: dguser
108   # unused for now to preserve the API
109   adminPassword: cc03e747a6afbbcbf8be7668acfebee5
110   # adminCredsExternalSecret: some secret
111   nodeUser: dguser
112   # unused for now to preserve the API
113   nodePassword: cc03e747a6afbbcbf8be7668acfebee5
114   # nodeCredsExternalSecret: some secret
115   restconfUser: admin
116   # unused for now to preserve the API
117   restconfPassword: admin
118   # restconfCredsExternalSecret: some secret
119
120   dbPodName: mysql-db
121   dbServiceName: sdnc-dbhost
122   # MD5 hash of dguser password ( default: test123 )
123   dgUserPassword: cc03e747a6afbbcbf8be7668acfebee5
124
125 # default number of instances
126 replicaCount: 1
127
128 nodeSelector: {}
129
130 affinity: {}
131
132 # probe configuration parameters
133 liveness:
134   initialDelaySeconds: 10
135   periodSeconds: 10
136   # necessary to disable liveness probe when setting breakpoints
137   # in debugger so K8s doesn't restart unresponsive container
138   enabled: true
139
140 readiness:
141   initialDelaySeconds: 10
142   periodSeconds: 10
143
144 service:
145   type: NodePort
146   name: dgbuilder
147   portName: dgbuilder
148   externalPort: 3000
149   internalPort: 3100
150   nodePort: 28
151
152 ingress:
153   enabled: false
154   service:
155     - baseaddr: "dgbuilder"
156       name: "dgbuilder"
157       port: 3000
158   config:
159     ssl: "redirect"
160
161  # dependency / sub-chart configuration
162 certInitializer:
163   nameOverride: dgbuilder-cert-initializer
164   truststoreMountpath: /opt/onap/ccsdk/dgbuilder/certs
165   fqdn: "sdnc"
166   app_ns: "org.osaaf.aaf"
167   fqi: "sdnc@sdnc.onap.org"
168   fqi_namespace: org.onap.sdnc
169   public_fqdn: "dgbuilder.onap.org"
170   aafDeployFqi: "deployer@people.osaaf.org"
171   aafDeployPass: demo123456!
172   cadi_latitude: "38.0"
173   cadi_longitude: "-72.0"
174   credsPath: /opt/app/osaaf/local
175   aaf_add_config: >
176     cd /opt/app/osaaf/local;
177     /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 ;
178     cp {{ .Values.fqi_namespace }}.crt node-cert.pem;
179     cp {{ .Values.fqi_namespace }}.key node-key.pem;
180     chmod go+r node-*.pem
181
182 #Resource Limit flavor -By Default using small
183 flavor: small
184 #segregation for different envionment (Small and Large)
185
186 resources:
187   small:
188     limits:
189       cpu: 2
190       memory: 4Gi
191     requests:
192       cpu: 1
193       memory: 2Gi
194   large:
195     limits:
196       cpu: 4
197       memory: 8Gi
198     requests:
199       cpu: 2
200       memory: 4Gi
201   unlimited: {}
202