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