SDNC using shared mariadb-galera cluster
[oom.git] / kubernetes / sdnc / values.yaml
1 # Copyright © 2017 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 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20   nodePortPrefixExt: 304
21   repository: nexus3.onap.org:10001
22   readinessRepository: oomk8s
23   readinessImage: readiness-check:2.0.2
24   loggingRepository: docker.elastic.co
25   loggingImage: beats/filebeat:5.5.0
26   persistence:
27     mountPath: /dockerdata-nfs
28
29 #################################################################
30 # Application configuration defaults.
31 #################################################################
32 # application images
33 repository: nexus3.onap.org:10001
34 pullPolicy: Always
35 image: onap/sdnc-image:1.5-STAGING-latest
36
37 # flag to enable debugging - application support required
38 debugEnabled: false
39
40 # application configuration
41 config:
42   odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
43   dbRootPassword: secretpassword
44   dbSdnctlPassword: gamma
45   enableClustering: true
46   binDir: /opt/onap/sdnc/bin
47   geoEnabled: false
48 # if geoEnabled is set to true here, mysql.geoEnabled must be set to true
49 # if geoEnabled is set to true the following 3 values must be set to their proper values
50   myODLCluster: 127.0.0.1
51   peerODLCluster: 127.0.0.1
52   isPrimaryCluster: true
53   configDir: /opt/onap/sdnc/data/properties
54   dmaapTopic: SUCCESS
55   dmaapPort: 3904
56   logstashServiceName: log-ls
57   logstashPort: 5044
58   ansibleServiceName: sdnc-ansible-server
59   ansiblePort: 8000
60   javaHome: /usr/lib/jvm/java-1.8-openjdk
61
62   #local Mariadb-galera cluster
63   localDBCluster: false
64
65   #Shared mariadb-galera details
66   mariadbGalera:
67     chartName: mariadb-galera
68     serviceName: mariadb-galera
69     internalPort: 3306
70
71 # dependency / sub-chart configuration
72 cds:
73   enabled: true
74
75 dmaap-listener:
76   nameOverride: sdnc-dmaap-listener
77   config:
78     sdncChartName: sdnc
79     mysqlChartName: mariadb-galera
80     dmaapPort: 3904
81     sdncPort: 8282
82     configDir: /opt/onap/sdnc/data/properties
83     odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
84
85 ueb-listener:
86   nameOverride: sdnc-ueb-listener
87   config:
88     sdncPort: 8282
89     sdncChartName: sdnc
90     mysqlChartName: mariadb-galera
91     configDir: /opt/onap/sdnc/data/properties
92     odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
93
94 sdnc-portal:
95   config:
96     sdncChartName: sdnc
97     mysqlChartName: mariadb-galera
98     configDir: /opt/onap/sdnc/data/properties
99     dbRootPassword: secretpassword
100     dbSdnctlPassword: gamma
101     odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
102
103 sdnc-ansible-server:
104   service:
105     name: sdnc-ansible-server
106     internalPort: 8000
107   config:
108     mysqlServiceName: mariadb-galera
109
110 mariadb-galera:
111   nameOverride: sdnc-db
112   service:
113     name: sdnc-dbhost
114     internalPort: 3306
115   sdnctlPrefix: sdnc
116   persistence:
117     mountSubPath: sdnc/mariadb-galera
118     enabled: true
119   replicaCount: 1
120
121 dgbuilder:
122   nameOverride: sdnc-dgbuilder
123   config:
124     dbPodName: mariadb-galera
125     dbServiceName: mariadb-galera
126     dbRootPassword: secretpassword
127     dbSdnctlPassword: gamma
128     dgUserPassword: cc03e747a6afbbcbf8be7668acfebee5
129   service:
130     name: sdnc-dgbuilder
131     nodePort: "03"
132
133 # default number of instances
134 replicaCount: 1
135
136 nodeSelector: {}
137
138 affinity: {}
139
140 # probe configuration parameters
141 liveness:
142   initialDelaySeconds: 10
143   periodSeconds: 10
144   # necessary to disable liveness probe when setting breakpoints
145   # in debugger so K8s doesn't restart unresponsive container
146   enabled: true
147
148 readiness:
149   initialDelaySeconds: 10
150   periodSeconds: 10
151
152 service:
153   type: NodePort
154   name: sdnc
155   portName: sdnc
156   internalPort: 8181
157   internalPort2: 8101
158   internalPort3: 8080
159   internalPort4: 2550
160
161   #port
162   externalPort: 8282
163   nodePort: "02"
164
165   externalPort2: 8202
166   nodePort2: "08"
167
168   externalPort3: 8280
169   nodePort3: 46
170
171   externalPort4: 8443
172   nodePort4: 67
173
174   clusterPort: 2550
175   clusterPort2: 2650
176   clusterPort3: 2681
177
178   geoNodePort1: 61
179   geoNodePort2: 62
180   geoNodePort3: 63
181   geoNodePort4: 64
182   geoNodePort5: 65
183   geoNodePort6: 66
184
185 ## Persist data to a persitent volume
186 persistence:
187   enabled: true
188
189   ## A manually managed Persistent Volume and Claim
190   ## Requires persistence.enabled: true
191   ## If defined, PVC must be created manually before volume will be bound
192   # existingClaim:
193   volumeReclaimPolicy: Retain
194
195   ## database data Persistent Volume Storage Class
196   ## If defined, storageClassName: <storageClass>
197   ## If set to "-", storageClassName: "", which disables dynamic provisioning
198   ## If undefined (the default) or set to null, no storageClassName spec is
199   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
200   ##   GKE, AWS & OpenStack)
201   accessMode: ReadWriteOnce
202   size: 1Gi
203   mountPath: /dockerdata-nfs
204   mountSubPath: sdnc/mdsal
205   mdsalPath: /opt/opendaylight/current/daexim
206
207 certpersistence:
208   enabled: true
209
210   ## A manually managed Persistent Volume and Claim
211   ## Requires persistence.enabled: true
212   ## If defined, PVC must be created manually before volume will be bound
213   # existingClaim:
214
215   volumeReclaimPolicy: Retain
216   accessMode: ReadWriteOnce
217   size: 50Mi
218   mountPath: /dockerdata-nfs
219   mountSubPath: sdnc/certs
220   certPath: /opt/opendaylight/current/certs
221   ##storageClass: "manual"
222
223 ingress:
224   enabled: false
225
226 #Resource Limit flavor -By Default using small
227 flavor: small
228 #segregation for different envionment (Small and Large)
229
230 resources:
231   small:
232     limits:
233       cpu: 2
234       memory: 4Gi
235     requests:
236       cpu: 1
237       memory: 2Gi
238   large:
239     limits:
240       cpu: 4
241       memory: 8Gi
242     requests:
243       cpu: 2
244       memory: 4Gi
245   unlimited: {}