56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f ../docker-compose.prod.yaml -v
|
|
kompose.version: 1.26.1 (a9d05d509)
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: db
|
|
name: db
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: db
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f ../docker-compose.prod.yaml -v
|
|
kompose.version: 1.26.1 (a9d05d509)
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: db
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: POSTGRES_DB
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: POSTGRES_DB
|
|
name: env-prod-db
|
|
- name: POSTGRES_PASSWORD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: POSTGRES_PASSWORD
|
|
name: env-prod-db
|
|
- name: POSTGRES_USER
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: POSTGRES_USER
|
|
name: env-prod-db
|
|
image: postgres:14.5-alpine
|
|
name: db
|
|
resources: {}
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql/data/
|
|
name: postgres-data-prod
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: postgres-data-prod
|
|
persistentVolumeClaim:
|
|
claimName: postgres-data-prod
|
|
status: {}
|