Persistent volumes for Database storage
Addition of persistent volumes for all DBs including
persistence of policy mariadb (with initial configuration data)
Change-Id: I029e724c3f8bba7fe3599b0955a4a3d213c08163
Issue-ID: OOM-268
Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
diff --git a/kubernetes/appc/templates/appc-pv-pvc.yaml b/kubernetes/appc/templates/appc-pv-pvc.yaml
new file mode 100644
index 0000000..51392f7
--- /dev/null
+++ b/kubernetes/appc/templates/appc-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: appc-db
+ namespace: "{{ .Values.nsPrefix }}-appc"
+ labels:
+ name: appc-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: appc-db
+ namespace: "{{ .Values.nsPrefix }}-appc"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: appc-db
diff --git a/kubernetes/appc/templates/db-deployment.yaml b/kubernetes/appc/templates/db-deployment.yaml
index 239d76f..542f8f4 100644
--- a/kubernetes/appc/templates/db-deployment.yaml
+++ b/kubernetes/appc/templates/db-deployment.yaml
@@ -34,7 +34,7 @@
restartPolicy: Always
volumes:
- name: appc-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/data
+ persistentVolumeClaim:
+ claimName: appc-db
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/config/docker/init/config-init.sh b/kubernetes/config/docker/init/config-init.sh
index ba11425..15b4181 100755
--- a/kubernetes/config/docker/init/config-init.sh
+++ b/kubernetes/config/docker/init/config-init.sh
@@ -28,6 +28,7 @@
mkdir -p /config-init/$NAMESPACE/aai/elasticsearch/es-data/
mkdir -p /config-init/$NAMESPACE/aai/search-data-service/logs/
mkdir -p /config-init/$NAMESPACE/aai/data-router/logs/
+mkdir -p /config-init/$NAMESPACE/mso/mariadb/data
chmod -R 777 /config-init/$NAMESPACE/sdc/logs/
chmod -R 777 /config-init/$NAMESPACE/portal/logs/
@@ -42,6 +43,7 @@
chmod -R 777 /config-init/$NAMESPACE/aai/elasticsearch/es-data/
chmod -R 777 /config-init/$NAMESPACE/aai/search-data-service/logs/
chmod -R 777 /config-init/$NAMESPACE/aai/data-router/logs/
+chmod -R 777 /config-init/$NAMESPACE/policy/mariadb/
# replace the default 'onap' namespace qualification of K8s hostnames within the config files
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/aria_log.00000001 b/kubernetes/config/docker/init/src/config/policy/mariadb/data/aria_log.00000001
new file mode 100644
index 0000000..8608ff7
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/aria_log.00000001
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/aria_log_control b/kubernetes/config/docker/init/src/config/policy/mariadb/data/aria_log_control
new file mode 100644
index 0000000..9ae850a
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/aria_log_control
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/debian-10.0.flag b/kubernetes/config/docker/init/src/config/policy/mariadb/data/debian-10.0.flag
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/debian-10.0.flag
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/firstrun b/kubernetes/config/docker/init/src/config/policy/mariadb/data/firstrun
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/firstrun
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/ib_logfile0 b/kubernetes/config/docker/init/src/config/policy/mariadb/data/ib_logfile0
new file mode 100644
index 0000000..cc8b741
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/ib_logfile0
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/ib_logfile1 b/kubernetes/config/docker/init/src/config/policy/mariadb/data/ib_logfile1
new file mode 100644
index 0000000..274bba0
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/ib_logfile1
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/ibdata1 b/kubernetes/config/docker/init/src/config/policy/mariadb/data/ibdata1
new file mode 100644
index 0000000..3920f04
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/ibdata1
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/log/db.opt b/kubernetes/config/docker/init/src/config/policy/mariadb/data/log/db.opt
new file mode 100644
index 0000000..d8429c4
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/log/db.opt
@@ -0,0 +1,2 @@
+default-character-set=latin1
+default-collation=latin1_swedish_ci
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/multi-master.info b/kubernetes/config/docker/init/src/config/policy/mariadb/data/multi-master.info
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/multi-master.info
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.MYI
new file mode 100644
index 0000000..9ff5ed6
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.frm
new file mode 100644
index 0000000..fefc7eb
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/column_stats.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.MYI
new file mode 100644
index 0000000..f261e28
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.frm
new file mode 100644
index 0000000..faa4a8a
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/columns_priv.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.MYI
new file mode 100644
index 0000000..628c578
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.frm
new file mode 100644
index 0000000..1ab1f59
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/db.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.MYI
new file mode 100644
index 0000000..fc4d47f
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.frm
new file mode 100644
index 0000000..9089087
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/event.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.MYI
new file mode 100644
index 0000000..b0ddde1
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.frm
new file mode 100644
index 0000000..42aca49
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/func.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.CSM b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.CSM
new file mode 100644
index 0000000..8d08b8d
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.CSM
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.CSV b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.CSV
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.CSV
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.frm
new file mode 100644
index 0000000..919bb7f
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/general_log.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/gtid_slave_pos.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/gtid_slave_pos.frm
new file mode 100644
index 0000000..d09f1d4
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/gtid_slave_pos.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/gtid_slave_pos.ibd b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/gtid_slave_pos.ibd
new file mode 100644
index 0000000..b74a0af
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/gtid_slave_pos.ibd
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.MYD
new file mode 100644
index 0000000..360a41a
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.MYD
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.MYI
new file mode 100644
index 0000000..c381776
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.frm
new file mode 100644
index 0000000..e9dc205
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_category.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.MYD
new file mode 100644
index 0000000..570509b
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.MYD
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.MYI
new file mode 100644
index 0000000..36715cf
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.frm
new file mode 100644
index 0000000..999eec1
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_keyword.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.MYD
new file mode 100644
index 0000000..f963ea5
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.MYD
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.MYI
new file mode 100644
index 0000000..53190af
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.frm
new file mode 100644
index 0000000..6eef95a
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_relation.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.MYD
new file mode 100644
index 0000000..ad4c19e
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.MYD
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.MYI
new file mode 100644
index 0000000..d8ef966
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.frm
new file mode 100644
index 0000000..3b59b25
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/help_topic.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.MYI
new file mode 100644
index 0000000..2a1cfcb
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.frm
new file mode 100644
index 0000000..62ae8cd
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/host.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.MYI
new file mode 100644
index 0000000..05be1c8
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.frm
new file mode 100644
index 0000000..e4cf7e0
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/index_stats.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_index_stats.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_index_stats.frm
new file mode 100644
index 0000000..ed0f019
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_index_stats.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_index_stats.ibd b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_index_stats.ibd
new file mode 100644
index 0000000..daac102
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_index_stats.ibd
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_table_stats.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_table_stats.frm
new file mode 100644
index 0000000..64e3af3
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_table_stats.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_table_stats.ibd b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_table_stats.ibd
new file mode 100644
index 0000000..7716fcc
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/innodb_table_stats.ibd
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.MYI
new file mode 100644
index 0000000..5e741be
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.frm
new file mode 100644
index 0000000..7f57bf2
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/plugin.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.MYI
new file mode 100644
index 0000000..253b7c7
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.frm
new file mode 100644
index 0000000..a7c27b0
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proc.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.MYI
new file mode 100644
index 0000000..62aca26
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.frm
new file mode 100644
index 0000000..03a6ce6
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/procs_priv.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.MYD
new file mode 100644
index 0000000..5d8c536
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.MYD
@@ -0,0 +1 @@
+ÿlocalhost root VUÚXÿae9df72d0f92 root VUÚX
\ No newline at end of file
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.MYI
new file mode 100644
index 0000000..8ad2f00
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.frm
new file mode 100644
index 0000000..194540f
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/proxies_priv.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.MYI
new file mode 100644
index 0000000..adcba59
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.frm
new file mode 100644
index 0000000..c3d60e7
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/roles_mapping.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.MYI
new file mode 100644
index 0000000..c44463f
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.frm
new file mode 100644
index 0000000..8892243
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/servers.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.CSM b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.CSM
new file mode 100644
index 0000000..8d08b8d
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.CSM
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.CSV b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.CSV
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.CSV
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.frm
new file mode 100644
index 0000000..3509539
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/slow_log.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.MYI
new file mode 100644
index 0000000..0d26cd3
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.frm
new file mode 100644
index 0000000..6bac5bd
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/table_stats.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.MYI
new file mode 100644
index 0000000..610ffef
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.frm
new file mode 100644
index 0000000..008358b
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/tables_priv.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.MYI
new file mode 100644
index 0000000..99242f2
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.frm
new file mode 100644
index 0000000..5e091a2
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.MYI
new file mode 100644
index 0000000..8063843
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.frm
new file mode 100644
index 0000000..ae89ff5
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_leap_second.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.MYI
new file mode 100644
index 0000000..46e949c
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.frm
new file mode 100644
index 0000000..a9e7942
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.MYI
new file mode 100644
index 0000000..a98b680
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.frm
new file mode 100644
index 0000000..58743dc
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.MYD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.MYD
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.MYI
new file mode 100644
index 0000000..d4f0bc1
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.frm
new file mode 100644
index 0000000..7d0229c
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/time_zone_transition_type.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.MYD b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.MYD
new file mode 100644
index 0000000..107af55
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.MYD
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.MYI b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.MYI
new file mode 100644
index 0000000..c6eb47d
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.MYI
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.frm
new file mode 100644
index 0000000..9e5f937
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/mysql/user.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/accounts.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/accounts.frm
new file mode 100644
index 0000000..76257e5
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/accounts.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/cond_instances.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/cond_instances.frm
new file mode 100644
index 0000000..746f90d
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/cond_instances.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/db.opt b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/db.opt
new file mode 100644
index 0000000..4ed6015
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/db.opt
@@ -0,0 +1,2 @@
+default-character-set=utf8
+default-collation=utf8_general_ci
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_current.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_current.frm
new file mode 100644
index 0000000..5520614
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_current.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_history.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_history.frm
new file mode 100644
index 0000000..ff098a6
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_history.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_history_long.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_history_long.frm
new file mode 100644
index 0000000..7c80576
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_history_long.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_account_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_account_by_event_name.frm
new file mode 100644
index 0000000..e550bc8
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_account_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_host_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_host_by_event_name.frm
new file mode 100644
index 0000000..07b0159
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_host_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_thread_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_thread_by_event_name.frm
new file mode 100644
index 0000000..953423d
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_thread_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_user_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_user_by_event_name.frm
new file mode 100644
index 0000000..ee203b4
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_by_user_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_global_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_global_by_event_name.frm
new file mode 100644
index 0000000..17695df
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_stages_summary_global_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_current.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_current.frm
new file mode 100644
index 0000000..f1c697d
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_current.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_history.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_history.frm
new file mode 100644
index 0000000..a22f245
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_history.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_history_long.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_history_long.frm
new file mode 100644
index 0000000..90184ae
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_history_long.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_account_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_account_by_event_name.frm
new file mode 100644
index 0000000..6d96ec6
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_account_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_digest.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_digest.frm
new file mode 100644
index 0000000..bd5d1be
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_digest.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_host_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_host_by_event_name.frm
new file mode 100644
index 0000000..a4cbc46
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_host_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_thread_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_thread_by_event_name.frm
new file mode 100644
index 0000000..2463e3f
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_thread_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_user_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_user_by_event_name.frm
new file mode 100644
index 0000000..8e1e1b4
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_by_user_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_global_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_global_by_event_name.frm
new file mode 100644
index 0000000..0866d50
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_statements_summary_global_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_current.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_current.frm
new file mode 100644
index 0000000..e511ca1
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_current.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_history.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_history.frm
new file mode 100644
index 0000000..0ccd30e
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_history.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_history_long.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_history_long.frm
new file mode 100644
index 0000000..6d80113
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_history_long.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_account_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_account_by_event_name.frm
new file mode 100644
index 0000000..1e866b6
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_account_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_host_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_host_by_event_name.frm
new file mode 100644
index 0000000..2da5615
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_host_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_instance.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_instance.frm
new file mode 100644
index 0000000..8830264
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_instance.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_thread_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_thread_by_event_name.frm
new file mode 100644
index 0000000..d72308c
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_thread_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_user_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_user_by_event_name.frm
new file mode 100644
index 0000000..787a3a5
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_by_user_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_global_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_global_by_event_name.frm
new file mode 100644
index 0000000..f690713
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/events_waits_summary_global_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_instances.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_instances.frm
new file mode 100644
index 0000000..8583666
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_instances.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_summary_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_summary_by_event_name.frm
new file mode 100644
index 0000000..591f0e9
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_summary_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_summary_by_instance.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_summary_by_instance.frm
new file mode 100644
index 0000000..9f5807e
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/file_summary_by_instance.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/host_cache.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/host_cache.frm
new file mode 100644
index 0000000..be7423d
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/host_cache.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/hosts.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/hosts.frm
new file mode 100644
index 0000000..c6aa503
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/hosts.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/mutex_instances.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/mutex_instances.frm
new file mode 100644
index 0000000..cca0452
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/mutex_instances.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/objects_summary_global_by_type.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/objects_summary_global_by_type.frm
new file mode 100644
index 0000000..2fa0064
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/objects_summary_global_by_type.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/performance_timers.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/performance_timers.frm
new file mode 100644
index 0000000..f7e1660
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/performance_timers.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/rwlock_instances.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/rwlock_instances.frm
new file mode 100644
index 0000000..135277b
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/rwlock_instances.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/session_account_connect_attrs.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/session_account_connect_attrs.frm
new file mode 100644
index 0000000..d73a80e
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/session_account_connect_attrs.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/session_connect_attrs.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/session_connect_attrs.frm
new file mode 100644
index 0000000..31c7475
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/session_connect_attrs.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_actors.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_actors.frm
new file mode 100644
index 0000000..276443f
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_actors.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_consumers.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_consumers.frm
new file mode 100644
index 0000000..80f6dd0
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_consumers.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_instruments.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_instruments.frm
new file mode 100644
index 0000000..fd83053
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_instruments.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_objects.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_objects.frm
new file mode 100644
index 0000000..89ae59b
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_objects.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_timers.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_timers.frm
new file mode 100644
index 0000000..7058356
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/setup_timers.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_instances.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_instances.frm
new file mode 100644
index 0000000..20963dc
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_instances.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_summary_by_event_name.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_summary_by_event_name.frm
new file mode 100644
index 0000000..739b5d5
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_summary_by_event_name.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_summary_by_instance.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_summary_by_instance.frm
new file mode 100644
index 0000000..649c26f
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/socket_summary_by_instance.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_io_waits_summary_by_index_usage.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_io_waits_summary_by_index_usage.frm
new file mode 100644
index 0000000..0fb793b
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_io_waits_summary_by_index_usage.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_io_waits_summary_by_table.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_io_waits_summary_by_table.frm
new file mode 100644
index 0000000..ffe51b3
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_io_waits_summary_by_table.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_lock_waits_summary_by_table.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_lock_waits_summary_by_table.frm
new file mode 100644
index 0000000..e771595
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/table_lock_waits_summary_by_table.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/threads.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/threads.frm
new file mode 100644
index 0000000..121dfd3
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/threads.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/users.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/users.frm
new file mode 100644
index 0000000..6bb88f3
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/performance_schema/users.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db.opt b/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db.opt
new file mode 100644
index 0000000..d8429c4
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db.opt
@@ -0,0 +1,2 @@
+default-character-set=latin1
+default-collation=latin1_swedish_ci
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db_version.frm b/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db_version.frm
new file mode 100644
index 0000000..29d4a20
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db_version.frm
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db_version.ibd b/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db_version.ibd
new file mode 100644
index 0000000..c331218
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/support/db_version.ibd
Binary files differ
diff --git a/kubernetes/config/docker/init/src/config/policy/mariadb/data/xacml/db.opt b/kubernetes/config/docker/init/src/config/policy/mariadb/data/xacml/db.opt
new file mode 100644
index 0000000..d8429c4
--- /dev/null
+++ b/kubernetes/config/docker/init/src/config/policy/mariadb/data/xacml/db.opt
@@ -0,0 +1,2 @@
+default-character-set=latin1
+default-collation=latin1_swedish_ci
diff --git a/kubernetes/message-router/templates/message-router-kafka.yaml b/kubernetes/message-router/templates/message-router-kafka.yaml
index 19583bf..ab5c3d4 100644
--- a/kubernetes/message-router/templates/message-router-kafka.yaml
+++ b/kubernetes/message-router/templates/message-router-kafka.yaml
@@ -74,8 +74,8 @@
hostPath:
path: /var/run/docker.sock
- name: kafka-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-kafka/
+ persistentVolumeClaim:
+ claimName: message-router-kafka
- name: start-kafka
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/start-kafka.sh
diff --git a/kubernetes/message-router/templates/message-router-pv-pvc.yaml b/kubernetes/message-router/templates/message-router-pv-pvc.yaml
new file mode 100644
index 0000000..16d6fcd
--- /dev/null
+++ b/kubernetes/message-router/templates/message-router-pv-pvc.yaml
@@ -0,0 +1,61 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: message-router-kafka
+ namespace: "{{ .Values.nsPrefix }}-message-router"
+ labels:
+ name: message-router-kafka
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-kafka/
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: message-router-kafka
+ namespace: "{{ .Values.nsPrefix }}-message-router"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: message-router-kafka
+---
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: message-router-zookeeper
+ namespace: "{{ .Values.nsPrefix }}-message-router"
+ labels:
+ name: message-router-zookeeper
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-zookeeper
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: message-router-zookeeper
+ namespace: "{{ .Values.nsPrefix }}-message-router"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: message-router-zookeeper
diff --git a/kubernetes/message-router/templates/message-router-zookeeper.yaml b/kubernetes/message-router/templates/message-router-zookeeper.yaml
index 5b46dc0..c07ef3a 100644
--- a/kubernetes/message-router/templates/message-router-zookeeper.yaml
+++ b/kubernetes/message-router/templates/message-router-zookeeper.yaml
@@ -30,7 +30,7 @@
restartPolicy: Always
volumes:
- name: zookeeper-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dcae-startup-vm-message-router/docker_files/data-zookeeper
+ persistentVolumeClaim:
+ claimName: message-router-zookeeper
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/mso/templates/db-deployment.yaml b/kubernetes/mso/templates/db-deployment.yaml
index 76cf2ec..389fb5a 100644
--- a/kubernetes/mso/templates/db-deployment.yaml
+++ b/kubernetes/mso/templates/db-deployment.yaml
@@ -32,6 +32,8 @@
name: mso-mariadb-conf
- mountPath: /docker-entrypoint-initdb.d
name: mso-mariadb-docker-entrypoint-initdb
+ - mountPath: /var/lib/mysql
+ name: mso-mariadb-data
ports:
- containerPort: 3306
name: mariadb
@@ -47,5 +49,8 @@
- name: mso-mariadb-docker-entrypoint-initdb
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/docker-entrypoint-initdb.d
+ - name: mso-mariadb-data
+ persistentVolumeClaim:
+ claimName: mso-db
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/mso/templates/mso-pv-pvc.yaml b/kubernetes/mso/templates/mso-pv-pvc.yaml
new file mode 100644
index 0000000..c195980
--- /dev/null
+++ b/kubernetes/mso/templates/mso-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: mso-db
+ namespace: "{{ .Values.nsPrefix }}-mso"
+ labels:
+ name: mso-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mariadb/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: mso-db
+ namespace: "{{ .Values.nsPrefix }}-mso"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: mso-db
diff --git a/kubernetes/policy/templates/dep-maria.yaml b/kubernetes/policy/templates/dep-maria.yaml
index abbfdd8..2b0e40e 100644
--- a/kubernetes/policy/templates/dep-maria.yaml
+++ b/kubernetes/policy/templates/dep-maria.yaml
@@ -24,10 +24,17 @@
name: mariadb
ports:
- containerPort: 3306
+ volumeMounts:
+ - mountPath: /var/lib/mysql
+ name: policy-mariadb-data
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 5
periodSeconds: 10
+ volumes:
+ - name: policy-mariadb-data
+ persistentVolumeClaim:
+ claimName: policy-db
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/policy/templates/policy-pv-pvc.yaml b/kubernetes/policy/templates/policy-pv-pvc.yaml
new file mode 100644
index 0000000..dda9820
--- /dev/null
+++ b/kubernetes/policy/templates/policy-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: policy-db
+ namespace: "{{ .Values.nsPrefix }}-policy"
+ labels:
+ name: policy-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/mariadb/data/
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: policy-db
+ namespace: "{{ .Values.nsPrefix }}-policy"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: policy-db
diff --git a/kubernetes/portal/templates/portal-mariadb-deployment.yaml b/kubernetes/portal/templates/portal-mariadb-deployment.yaml
index a31c6a2..16c0d7e 100755
--- a/kubernetes/portal/templates/portal-mariadb-deployment.yaml
+++ b/kubernetes/portal/templates/portal-mariadb-deployment.yaml
@@ -35,7 +35,7 @@
periodSeconds: 10
volumes:
- name: portal-mariadb-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/data
+ persistentVolumeClaim:
+ claimName: portal-db
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/portal/templates/portal-pv-pvc.yaml b/kubernetes/portal/templates/portal-pv-pvc.yaml
new file mode 100644
index 0000000..5d41e4f
--- /dev/null
+++ b/kubernetes/portal/templates/portal-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: portal-db
+ namespace: "{{ .Values.nsPrefix }}-portal"
+ labels:
+ name: portal-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: portal-db
+ namespace: "{{ .Values.nsPrefix }}-portal"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: portal-db
diff --git a/kubernetes/sdc/templates/sdc-cs.yaml b/kubernetes/sdc/templates/sdc-cs.yaml
index b660c90..9021194 100644
--- a/kubernetes/sdc/templates/sdc-cs.yaml
+++ b/kubernetes/sdc/templates/sdc-cs.yaml
@@ -73,8 +73,8 @@
periodSeconds: 10
volumes:
- name: sdc-sdc-cs-cs
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-cs/CS
+ persistentVolumeClaim:
+ claimName: sdc-cs-db
- name: sdc-environments
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
diff --git a/kubernetes/sdc/templates/sdc-pv-pvc.yaml b/kubernetes/sdc/templates/sdc-pv-pvc.yaml
new file mode 100644
index 0000000..41f85e9
--- /dev/null
+++ b/kubernetes/sdc/templates/sdc-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: sdc-cs-db
+ namespace: "{{ .Values.nsPrefix }}-sdc"
+ labels:
+ name: sdc-cs-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-cs/CS
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: sdc-cs-db
+ namespace: "{{ .Values.nsPrefix }}-sdc"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: sdc-cs-db
diff --git a/kubernetes/sdnc/templates/db-deployment.yaml b/kubernetes/sdnc/templates/db-deployment.yaml
index fc692ba..8370798 100644
--- a/kubernetes/sdnc/templates/db-deployment.yaml
+++ b/kubernetes/sdnc/templates/db-deployment.yaml
@@ -34,7 +34,7 @@
periodSeconds: 10
volumes:
- name: sdnc-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/data
+ persistentVolumeClaim:
+ claimName: sdnc-db
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml b/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml
new file mode 100644
index 0000000..ac890c6
--- /dev/null
+++ b/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: sdnc-db
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+ labels:
+ name: sdnc-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: sdnc-db
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: sdnc-db
diff --git a/kubernetes/vid/templates/vid-mariadb-deployment.yaml b/kubernetes/vid/templates/vid-mariadb-deployment.yaml
index 7623674..e5032f3 100644
--- a/kubernetes/vid/templates/vid-mariadb-deployment.yaml
+++ b/kubernetes/vid/templates/vid-mariadb-deployment.yaml
@@ -44,8 +44,8 @@
periodSeconds: 10
volumes:
- name: vid-mariadb-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/mariadb/data
+ persistentVolumeClaim:
+ claimName: vid-db
- name: vid-pre-init
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/vid/lf_config/vid-pre-init.sql
diff --git a/kubernetes/vid/templates/vid-pv-pvc.yaml b/kubernetes/vid/templates/vid-pv-pvc.yaml
new file mode 100644
index 0000000..71c5d73
--- /dev/null
+++ b/kubernetes/vid/templates/vid-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: vid-db
+ namespace: "{{ .Values.nsPrefix }}-vid"
+ labels:
+ name: vid-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/mariadb/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: vid-db
+ namespace: "{{ .Values.nsPrefix }}-vid"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: vid-db