[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / appc / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   nodePortPrefix: 302
21   readinessImage: onap/oom/readiness:3.0.1
22   centralizedLoggingEnabled: false
23   loggingRepository: docker.elastic.co
24   loggingImage: beats/filebeat:5.5.0
25   # envsusbt
26   envsubstImage: dibi/envsubst
27   persistence:
28     mountPath: /dockerdata-nfs
29
30 #################################################################
31 # Secrets metaconfig
32 #################################################################
33 secrets:
34   - uid: "db-root-pass"
35     name: '{{ include "common.release" . }}-appc-db-root-pass'
36     externalSecret: '{{ .Values.config.dbRootPassExternalSecret }}'
37     type: password
38     password: '{{ .Values.config.dbRootPass }}'
39   - uid: 'appcdb-user-creds'
40     name: '{{ include "common.release" . }}-appcdb-user-creds'
41     type: basicAuth
42     externalSecret: '{{ tpl (default "" .Values.config.appcdb.userCredentialsExternalSecret) . }}'
43     login: '{{ .Values.config.appcdb.userName }}'
44     password: '{{ .Values.config.appcdb.password }}'
45   - uid: 'sdncdb-user-creds'
46     name: '{{ include "common.release" . }}-sdncdb-user-creds'
47     type: basicAuth
48     externalSecret: '{{ tpl (default "" .Values.config.sdncdb.userCredentialsExternalSecret) . }}'
49     login: '{{ .Values.config.sdncdb.userName }}'
50     password: '{{ .Values.config.sdncdb.password }}'
51
52
53 #################################################################
54 # Application configuration defaults.
55 #################################################################
56 flavor: small
57 # application image
58 repository: nexus3.onap.org:10001
59 image: onap/appc-image:1.7.2
60 pullPolicy: Always
61
62 # flag to enable debugging - application support required
63 debugEnabled: false
64
65 # log configuration
66 log:
67   path: /var/log/onap
68
69 # application configuration
70 config:
71 #  dbRootPassExternalSecret: some secret
72 #  dbRootPass: password
73   appcdb:
74     # Warning: changing this config option may not work.
75     # It seems that the DB name is hardcoded.
76     dbName: appcctl
77     userName: appcctl
78     # password: appcctl
79     # userCredsExternalSecret: some secret
80   sdncdb:
81     # Warning: changing this config option may not work.
82     # It seems that the DB name is hardcoded.
83     dbName: sdnctl
84     userName: sdnctl
85     # password: gamma
86     # userCredsExternalSecret: some secret
87   odlUid: 100
88   odlGid: 101
89   ansibleServiceName: appc-ansible-server
90   ansiblePort: 8000
91   mariadbGaleraSVCName: appc-dbhost
92   mariadbGaleraContName: appc-db
93   enableAAF: true
94   enableClustering: false
95   configDir: /opt/onap/appc/data/properties
96   dmaapTopic: SUCCESS
97   dmaapTopicEnv: AUTO
98   logstashServiceName: log-ls
99   logstashPort: 5044
100   odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
101   openStackType: OpenStackProvider
102   openStackName: OpenStack
103   openStackKeyStoneUrl: http://localhost:8181/apidoc/explorer/index.html
104   openStackServiceTenantName: default
105   openStackDomain: default
106   openStackUserName: admin
107   openStackEncryptedPassword: enc:LDEbHEAvTF1R
108   odlUser: admin
109   dmaapServiceUrl: http://localhost:8080/publish
110   dmaapServiceUser: appc
111   dmaapServicePassword: onapappc
112
113 appc-ansible-server:
114   service:
115     name: appc-ansible-server
116     internalPort: 8000
117   config:
118     mysqlServiceName: appc-dbhost
119
120 mariadb-galera:
121   nameOverride: appc-db
122   config:
123     mariadbRootPasswordExternalSecret: '{{ include "common.release" . }}-appc-db-root-pass'
124   service:
125     name: appc-dbhost
126     portName: appc-dbhost
127   nfsprovisionerPrefix: appc
128   sdnctlPrefix: appc
129   persistence:
130     mountSubPath: appc/data
131     enabled: true
132   disableNfsProvisioner: true
133
134 dgbuilder:
135   nameOverride: appc-dgbuilder
136   certInitializer:
137     nameOverride: appc-dgbuilder-cert-initializer
138   config:
139     db:
140       rootPasswordExternalSecret: '{{ include "common.release" . }}-appc-db-root-pass'
141       userCredentialsExternalSecret: '{{ include "common.release" . }}-sdncdb-user-creds'
142     dbPodName: appc-db
143     dbServiceName: appc-dbhost
144   service:
145     name: appc-dgbuilder
146
147   ingress:
148     enabled: false
149     service:
150       - baseaddr: "appc-dgbuilder"
151         name: "appc-dgbuilder"
152         port: 3000
153     config:
154       ssl: "redirect"
155
156 #passing value to cdt chart. value of nodePort3 will be same as appc.service.nodePort3.
157 appc-cdt:
158   nodePort3: 11
159 # default number of instances
160 replicaCount: 1
161
162 nodeSelector: {}
163
164 affinity: {}
165
166 # probe configuration parameters
167 liveness:
168   initialDelaySeconds: 300
169   periodSeconds: 60
170   # necessary to disable liveness probe when setting breakpoints
171   # in debugger so K8s doesn't restart unresponsive container
172   enabled: true
173
174 readiness:
175   initialDelaySeconds: 300
176   periodSeconds: 60
177
178 service:
179   type: NodePort
180   name: appc
181   portName: appc
182
183   internalPort: 8443
184   externalPort: 8443
185   nodePort: 30
186
187   externalPort2: 1830
188   nodePort2: 31
189   clusterPort: 2550
190
191   internalPort3: 9191
192   externalPort3: 9090
193   nodePort3: 11
194
195 ## Persist data to a persitent volume
196 persistence:
197   enabled: true
198
199   ## A manually managed Persistent Volume and Claim
200   ## Requires persistence.enabled: true
201   ## If defined, PVC must be created manually before volume will be bound
202   # existingClaim:
203   volumeReclaimPolicy: Retain
204
205   ## database data Persistent Volume Storage Class
206   ## If defined, storageClassName: <storageClass>
207   ## If set to "-", storageClassName: "", which disables dynamic provisioning
208   ## If undefined (the default) or set to null, no storageClassName spec is
209   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
210   ##   GKE, AWS & OpenStack)
211   accessMode: ReadWriteOnce
212   size: 1Gi
213   mountPath: /dockerdata-nfs
214   mountSubPath: appc/mdsal
215   mdsalPath: /opt/opendaylight/current/daexim
216
217 ingress:
218   enabled: false
219   service:
220     - baseaddr: "appc.api"
221       name: "appc"
222       port: 8443
223   config:
224     ssl: "redirect"
225
226 # Configure resource requests and limits
227 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
228 resources:
229   small:
230     limits:
231       cpu: 2
232       memory: 4Gi
233     requests:
234       cpu: 1
235       memory: 2Gi
236   large:
237     limits:
238       cpu: 4
239       memory: 8Gi
240     requests:
241       cpu: 2
242       memory: 4Gi
243   unlimited: {}