45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: roundcube
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: roundcube
|
|
tier: frontend
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: roundcube
|
|
tier: frontend
|
|
spec:
|
|
containers:
|
|
- name: roundcube
|
|
image: roundcube/roundcubemail:latest
|
|
env:
|
|
- name: ROUNDCUBEMAIL_DEFAULT_HOST
|
|
value: mail-dovecot
|
|
- name: ROUNDCUBEMAIL_SMTP_SERVER
|
|
value: mail-postfix
|
|
- name: ROUNDCUBEMAIL_DB_TYPE
|
|
value: sqlite
|
|
volumeMounts:
|
|
- name: roundcube-persistent-storage
|
|
mountPath: /var/roundcube
|
|
subPath: roundcube-storage
|
|
- name: roundcube-persistent-storage
|
|
mountPath: /var/www/html
|
|
subPath: roundcube-installation
|
|
resources:
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "500m"
|
|
ports:
|
|
- containerPort: 80
|
|
name: roundcube
|
|
volumes:
|
|
- name: roundcube-persistent-storage
|
|
persistentVolumeClaim:
|
|
claimName: roundcube-pv-claim |