postgres++
This commit is contained in:
parent
80429793cc
commit
f4b26c42c8
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue