Fixed volumes
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user