Fixed volumes

This commit is contained in:
Pünkösd Marcell 2021-04-20 01:34:48 +02:00
parent 32a6063edd
commit 882a65f09b
2 changed files with 10 additions and 2 deletions

View File

@ -25,6 +25,10 @@ spec:
labels:
app: program-service-mongo
spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: program-service-mongo-pvc
containers:
- name: program-service-mongo
image: mongo
@ -33,7 +37,7 @@ spec:
name: program-service-mongo-config
volumeMounts:
- mountPath: /data/db
name: program-service-mongo-pvc
name: data
---
apiVersion: v1
kind: Service

View File

@ -25,6 +25,10 @@ spec:
labels:
app: job-orchestrator-postgres
spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: job-orchestrator-postgres-pvc
containers:
- name: job-orchestrator-postgres
image: postgresql:13
@ -33,7 +37,7 @@ spec:
name: job-orchestrator-postgres-config
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: job-orchestrator-postgres-pvc
name: data
---
apiVersion: v1
kind: Service