FINERACT-1457: Change Kubernetes set-up to use MariaDB

This commit is contained in:
Petri Tuomola
2021-12-30 11:41:54 +01:00
committed by Michael Vorburger ⛑️
parent 5efbd04173
commit ccff5d8ad2
4 changed files with 20 additions and 20 deletions
@@ -21,15 +21,15 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: fineract-mifoscommunity
name: fineract-mifoscommunity
app: mifos-community
name: mifos-community
spec:
ports:
- protocol: TCP
port: 80
port: 9090
targetPort: 80
selector:
app: fineract-mifoscommunity
app: mifos-community
tier: frontend
type: LoadBalancer
@@ -38,20 +38,20 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
name: fineract-mifoscommunity
name: mifos-community
labels:
app: fineract-mifoscommunity
app: mifos-community
spec:
selector:
matchLabels:
app: fineract-mifoscommunity
app: mifos-community
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: fineract-mifoscommunity
app: mifos-community
tier: frontend
spec:
initContainers:
@@ -59,7 +59,7 @@ spec:
image: busybox:1.28
command: ['sh', '-c', 'echo -e "Checking for the availability of Fineract server deployment"; while ! nc -z "fineract-server" 8443; do sleep 1; printf "-"; done; echo -e " >> Fineract server has started";']
containers:
- name: fineract-mifoscommunity
- name: mifos-community
image: openmf/community-app:latest
resources:
limits:
@@ -70,16 +70,16 @@ spec:
memory: "0.5Gi"
livenessProbe:
httpGet:
path: /#
port: 9090
path: /
port: 80
initialDelaySeconds: 90
periodSeconds: 1
readinessProbe:
httpGet:
path: /#
port: 9090
path: /
port: 80
initialDelaySeconds: 90
periodSeconds: 1
ports:
- containerPort: 80
name: fineract-mifoscommunity
name: mifos-community