FINERACT-1457: Change Kubernetes set-up to use MariaDB
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
5efbd04173
commit
ccff5d8ad2
@@ -86,7 +86,7 @@ spec:
|
||||
tier: fineractmysql
|
||||
spec:
|
||||
containers:
|
||||
- image: mysql:5.7
|
||||
- image: mariadb:10.6
|
||||
name: mysql
|
||||
resources:
|
||||
requests:
|
||||
@@ -96,14 +96,14 @@ spec:
|
||||
memory: "5Gi"
|
||||
cpu: "2000m"
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
- name: MARIADB_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: fineract-tenants-db-secret
|
||||
key: password
|
||||
livenessProbe:
|
||||
exec:
|
||||
command: ["sh","-c","mysqladmin ping -h localhost -uroot -p${MYSQL_ROOT_PASSWORD}"]
|
||||
command: ["sh","-c","mysqladmin ping -h localhost -uroot -p${MARIADB_ROOT_PASSWORD}"]
|
||||
failureThreshold: 10
|
||||
timeoutSeconds: 10
|
||||
readinessProbe:
|
||||
@@ -111,7 +111,7 @@ spec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- mysqladmin ping -uroot -p${MYSQL_PASSWORD}
|
||||
- mysqladmin ping -uroot -p${MARIADB_ROOT_PASSWORD}
|
||||
failureThreshold: 10
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
|
||||
Reference in New Issue
Block a user