Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[MARIADB][SO] Connect MariaDB Galera via master node
[oom.git]
/
kubernetes
/
so
/
components
/
so-mariadb
/
values.yaml
diff --git
a/kubernetes/so/components/so-mariadb/values.yaml
b/kubernetes/so/components/so-mariadb/values.yaml
index
9ecf3b0
..
8b29e62
100755
(executable)
--- a/
kubernetes/so/components/so-mariadb/values.yaml
+++ b/
kubernetes/so/components/so-mariadb/values.yaml
@@
-1,4
+1,5
@@
# Copyright © 2017 Amdocs, Bell Canada
# Copyright © 2017 Amdocs, Bell Canada
+# Modifications Copyright (C) 2022-23 Nordix Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-21,11
+22,13
@@
global:
nodePortPrefix: 302
nodePortPrefixExt: 304
repository: nexus3.onap.org:10001
nodePortPrefix: 302
nodePortPrefixExt: 304
repository: nexus3.onap.org:10001
- readinessImage: onap/oom/readiness:
3
.0.1
- ubuntuInitRepository:
registry.hub.docker.com
+ readinessImage: onap/oom/readiness:
5
.0.1
+ ubuntuInitRepository:
docker.io
mariadbGalera:
mariadbGalera:
+ # flag to enable the DB creation via mariadb-operator
+ useOperator: true
nameOverride: mariadb-galera
nameOverride: mariadb-galera
- service
Name
: mariadb-galera
+ service: mariadb-galera
servicePort: "3306"
migration:
enabled: false
servicePort: "3306"
migration:
enabled: false
@@
-33,6
+36,7
@@
global:
dbPort: 3306
dbUser: root
dbPassword: secretpassword
dbPort: 3306
dbUser: root
dbPassword: secretpassword
+
#################################################################
# Secrets metaconfig
#################################################################
#################################################################
# Secrets metaconfig
#################################################################
@@
-84,6
+88,11
@@
secrets:
externalSecret: '{{ tpl (default "" .Values.db.nfvo.dbCredsExternalSecret) . }}'
login: '{{ .Values.db.nfvo.userName }}'
password: '{{ .Values.db.nfvo.password }}'
externalSecret: '{{ tpl (default "" .Values.db.nfvo.dbCredsExternalSecret) . }}'
login: '{{ .Values.db.nfvo.userName }}'
password: '{{ .Values.db.nfvo.password }}'
+ - uid: cnfm-db-creds
+ type: basicAuth
+ externalSecret: '{{ tpl (default "" .Values.db.cnfm.dbCredsExternalSecret) . }}'
+ login: '{{ .Values.db.cnfm.userName }}'
+ password: '{{ .Values.db.cnfm.password }}'
#################################################################
# Application configuration defaults.
#################################################################
# Application configuration defaults.
@@
-94,6
+103,15
@@
image: mariadb:10.1.38
pullPolicy: Always
ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
pullPolicy: Always
ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
+# Local mariadb galera instance default name
+mariadb-galera:
+ nameOverride: so-mariadb-galera
+ service:
+ internalPort: 3306
+ mariadbOperator:
+ galera:
+ enabled: false
+
# db config
db:
rootPassword: secretpassword
# db config
db:
rootPassword: secretpassword
@@
-122,6
+140,9
@@
db:
nfvo:
userName: nfvouser
# dbCredsExternalSecret: some secret
nfvo:
userName: nfvouser
# dbCredsExternalSecret: some secret
+ cnfm:
+ userName: cnfmuser
+ # dbCredsExternalSecret: some secret
# application configuration
config:
# application configuration
config:
@@
-176,3
+197,13
@@
persistence:
mountPath: /dockerdata-nfs
mountSubPath: so/migration
mountPath: /dockerdata-nfs
mountSubPath: so/migration
+
+#Pods Service Account
+serviceAccount:
+ nameOverride: so-mariadb
+ roles:
+ - read
+
+wait_for_job_container:
+ containers:
+ - '{{ include "common.name" . }}-config'