[MARIADB][COMMON] Add support for mariadb-operator
[oom.git] / kubernetes / vfc / 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 global:
16   config:
17     ssl_enabled: false
18     msbprotocol: http
19     msbServiceName: msb-iag
20     msbPort: 443
21     redisServiceName: vfc-redis
22     redisPort: 6379
23 # Becaue now oom can register the microservice to msb automatically,
24 # If it is set to false, vfc contanier will not register again, if it is
25 # set to true, vfc will register by itself.
26 # we use this flag to determine who is responbile for serice registeration
27 # and it can reduce duplicate registration.
28     reg_to_msb_when_start: False
29     mariadb_admin: &mariadbAdmin root
30   persistence:
31     mountPath: /dockerdata-nfs
32   mariadbGalera: &mariadbGalera
33     #This flag allows VFC to instantiate its own mariadb-galera cluster
34     localCluster: false
35     service: mariadb-galera-primary
36     internalPort: 3306
37     nameOverride: mariadb-galera
38   centralizedLoggingEnabled: true
39
40 #################################################################
41 # Secrets metaconfig
42 #################################################################
43 secrets:
44   - uid: db-root-pass
45     name: &dbRootPassSecret '{{ include "common.release" . }}-vfc-db-root-pass'
46     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "db-root-pass" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
47     login: '{{ index .Values "mariadb-galera" "rootUser" "user"  }}'
48     password: '{{ index .Values "mariadb-galera" "rootUser" "password"  }}'
49     type: password
50
51 # application configuration
52 config:
53   logstashServiceName: log-ls
54   logstashPort: 5044
55
56 mariadb-galera: &localMariadb
57   rootUser:
58     user: *mariadbAdmin
59   # password:
60     externalSecret: *dbRootPassSecret
61   nameOverride: &dbServer vfc-mariadb
62   nfsprovisionerPrefix: vfc
63   persistence:
64     mountSubPath: vfc/data
65     enabled: true
66   disableNfsProvisioner: true
67   serviceAccount:
68     nameOverride: *dbServer
69   replicaCount: 1
70   mariadbOperator:
71     galera:
72       enabled: false
73
74 vfc-generic-vnfm-driver:
75   enabled: true
76   logConfigMapNamePrefix: '{{ include "common.release" . }}-vfc'
77
78 vfc-huawei-vnfm-driver:
79   enabled: true
80   logConfigMapNamePrefix: '{{ include "common.release" . }}-vfc'
81
82 vfc-nslcm:
83   enabled: true
84   mariadb-galera: *localMariadb
85   logConfigMapNamePrefix: '{{ include "common.release" . }}-vfc'
86
87 vfc-redis:
88   enabled: true
89
90 vfc-vnflcm:
91   enabled: true
92   mariadb-galera: *localMariadb
93   logConfigMapNamePrefix: '{{ include "common.release" . }}-vfc'
94
95 vfc-vnfmgr:
96   enabled: true
97   mariadb-galera: *localMariadb
98   logConfigMapNamePrefix: '{{ include "common.release" . }}-vfc'
99
100 vfc-vnfres:
101   enabled: true
102   mariadb-galera: *localMariadb
103   logConfigMapNamePrefix: '{{ include "common.release" . }}-vfc'
104
105 # sub-chart configuration
106 vfc-workflow:
107   service:
108     externalPort: 10550
109
110 vfc-workflow-engine:
111   config:
112     workflowPort: 10550
113
114 vfc-zte-vnfm-driver:
115   enabled: true
116   logConfigMapNamePrefix: '{{ include "common.release" . }}-vfc'