46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: pv-db-gateway
|
|
name: pv-db-gateway
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: pv-db-gateway
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: pv-db-gateway
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: POSTGRES_DB
|
|
value: pv-db-gateway
|
|
- name: POSTGRES_PASSWORD
|
|
value: Welcome@1
|
|
- name: POSTGRES_USER
|
|
value: humbingo
|
|
image: postgres:16
|
|
name: pv-db-gateway
|
|
ports:
|
|
- containerPort: 5432
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql/data
|
|
name: pv-db-gateway-claim0
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: pv-db-gateway-claim0
|
|
persistentVolumeClaim:
|
|
claimName: pv-db-gateway-claim0
|