[MARIADB][SO] Connect MariaDB Galera via master node
[oom.git] / kubernetes / common / network-name-gen / values.yaml
1 # Copyright (C) 2018  AT&T Intellectual Property.
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 configuration default values that can be inherited by
16 # all subcharts.
17 #################################################################
18 global:
19
20   # Change to an unused port prefix range to prevent port conflicts
21   # with other instances running within the same k8s cluster
22   nodePortPrefix: 302
23
24   # image pull policy
25   pullPolicy: IfNotPresent
26
27   mariadbGalera: &mariadbGalera
28     # flag to enable the DB creation via mariadb-operator
29     useOperator: true
30     #This flag allows SO to instantiate its own mariadb-galera cluster
31     #When changing it to "true", also set "globalCluster: false"
32     #as the dependency check will not work otherwise (Chart.yaml)
33     localCluster: false
34     globalCluster: true
35     service: mariadb-galera
36     internalPort: 3306
37     nameOverride: mariadb-galera
38
39 #################################################################
40 # Secrets metaconfig
41 #################################################################
42 secrets:
43   - uid: neng-db-secret
44     name: &dbUserSecretName '{{ include "common.release" . }}-neng-db-secret'
45     type: basicAuth
46     externalSecret: '{{ tpl (default "" .Values.config.db.externalSecret) . }}'
47     login: '{{ .Values.config.db.userName }}'
48     password: '{{ .Values.config.db.userPassword }}'
49   - uid: pol-basic-auth-secret
50     name: '{{ include "common.release" . }}-pol-basic-auth-secret'
51     type: basicAuth
52     externalSecret: '{{ tpl (default "" .Values.config.polBasicAuthSecret) . }}'
53     login: '{{ .Values.config.polBasicAuthUser }}'
54     password: '{{ .Values.config.polBasicAuthPassword }}'
55
56 # sub-chart config
57 mariadb-galera:
58   db:
59     user: sdnctl
60     # password:
61     externalSecret: *dbUserSecretName
62     name: &mysqlDbName nengdb
63   nameOverride: nengdb
64   service:
65     name: nengdb
66     portName: nengdbport
67   replicaCount: 1
68   mariadbOperator:
69     galera:
70       enabled: false
71
72   persistence:
73     enabled: true
74     mountSubPath: network-name-gen/data
75
76 mariadb-init:
77   config:
78     userCredentialsExternalSecret: *dbUserSecretName
79     mysqlDatabase: *mysqlDbName
80   nameOverride: nengdb-init
81   serviceAccount:
82     nameOverride: nengdb-init
83
84 #################################################################
85 # Application configuration defaults.
86 #################################################################
87 # application image
88 image: onap/ccsdk-apps-ms-neng:1.4.0
89 pullPolicy: IfNotPresent
90
91 # application configuration
92 config:
93   db:
94     userName: nenguser
95     # userPassword: password
96     # userCredentialsExternalSecret: some-secret
97   springProfile: live
98   polClientAuth: cHl0aG9uOnRlc3Q=
99   polBasicAuthUser: healthcheck
100   polBasicAuthPassword: zb!XztG34
101   polUrl:
102     https: https://policy-xacml-pdp:6969/policy/pdpx/v1/decision
103     http: http://policy-xacml-pdp:6969/policy/pdpx/v1/decision
104   polEnv: TEST
105   polReqId: xx
106   disableHostVerification: true
107   aaiCertPass: changeit
108   aaiCertPath: /opt/etc/config/aai_keystore
109   aaiAuth: QUFJOkFBSQ==
110   aaiUri:
111     https: https://aai:8443/aai/v14/
112     http: http://aai:80/aai/v14/
113
114 # default number of instances
115 replicaCount: 1
116
117 nodeSelector: {}
118
119 affinity: {}
120
121 # probe configuration parameters
122 liveness:
123   initialDelaySeconds: 10
124   periodSeconds: 10
125   # necessary to disable liveness probe when setting breakpoints
126   # in debugger so K8s doesn't restart unresponsive container
127   enabled: false
128
129 readiness:
130   initialDelaySeconds: 10
131   periodSeconds: 10
132
133 service:
134   type: ClusterIP
135   name: neng-serv
136   portName: http
137   internalPort: 8080
138   externalPort: 8080
139
140 ingress:
141   enabled: false
142
143 resources: {}
144
145 #Pods Service Account
146 serviceAccount:
147   nameOverride: network-name-gen
148   roles:
149     - read