postgres++

This commit is contained in:
Nico Schottelius 2021-06-08 21:00:07 +02:00
parent 80429793cc
commit f4b26c42c8

View file

@ -5,8 +5,6 @@ metadata:
labels:
app: postgres
data:
POSTGRES_DB: postgresdb
POSTGRES_USER: postgresadmin
POSTGRES_PASSWORD: cae8xohrai5I
---
kind: PersistentVolumeClaim
@ -16,15 +14,20 @@ metadata:
labels:
app: postgres
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
spec:
selector:
matchLabels:
app: postgres
replicas: 1
template:
metadata:
@ -40,7 +43,7 @@ spec:
- configMapRef:
name: postgres-config
volumeMounts:
- mountPath: /var/lib/postgresql/data
- mountPath: /var/lib/postgresql
name: postgresdb
volumes:
- name: postgresdb