mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: roundcubedb
|
|
namespace: roundcube
|
|
labels:
|
|
service: roundcubedb
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
service: roundcubedb
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
service: roundcubedb
|
|
spec:
|
|
containers:
|
|
- name: roundcubedb
|
|
image: postgres:alpine
|
|
imagePullPolicy: ""
|
|
env:
|
|
- name: POSTGRES_DB
|
|
value: roundcube
|
|
- name: POSTGRES_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: roundcubemail-shared-secret
|
|
key: DB_USER
|
|
- name: POSTGRES_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: roundcubemail-shared-secret
|
|
key: DB_PASSWORD
|
|
- name: PGDATA
|
|
value: /var/lib/postgresql/data/pgdata
|
|
ports:
|
|
- containerPort: 5432
|
|
volumeMounts:
|
|
- mountPath: /var/lib/postgresql/data
|
|
name: roundcubedb-pvc
|
|
restartPolicy: Always
|
|
serviceAccountName: ""
|
|
volumes:
|
|
- name: roundcubedb-pvc
|
|
persistentVolumeClaim:
|
|
claimName: roundcubedb-pvc
|