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