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