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: labels:
app: program-service-mongo app: program-service-mongo
spec: spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: program-service-mongo-pvc
containers: containers:
- name: program-service-mongo - name: program-service-mongo
image: mongo image: mongo
@ -33,7 +37,7 @@ spec:
name: program-service-mongo-config name: program-service-mongo-config
volumeMounts: volumeMounts:
- mountPath: /data/db - mountPath: /data/db
name: program-service-mongo-pvc name: data
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View File

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