2023-10-09 16:38:06 +02:00
|
|
|
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
|
2023-10-12 15:37:49 +02:00
|
|
|
value: imap.virt.local
|
2023-10-09 16:38:06 +02:00
|
|
|
- name: ROUNDCUBEMAIL_SMTP_SERVER
|
2023-10-12 15:37:49 +02:00
|
|
|
value: smtp.virt.local
|
2023-10-12 15:31:10 +02:00
|
|
|
- name: ROUNDCUBEMAIL_SMTP_PORT
|
|
|
|
value: "25"
|
2023-10-09 16:38:06 +02:00
|
|
|
- name: ROUNDCUBEMAIL_DB_TYPE
|
|
|
|
value: sqlite
|
2023-10-13 18:11:08 +02:00
|
|
|
- name: ROUNDCUBEMAIL_SMTP_USER
|
|
|
|
value: ""
|
|
|
|
- name: ROUNDCUBEMAIL_SMTP_PASS
|
|
|
|
value: ""
|
2023-10-09 16:38:06 +02:00
|
|
|
volumeMounts:
|
|
|
|
- name: roundcube-persistent-storage
|
|
|
|
mountPath: /var/roundcube
|
2023-10-12 13:40:34 +02:00
|
|
|
subPath: roundcube-storage
|
|
|
|
- name: roundcube-persistent-storage
|
|
|
|
mountPath: /var/www/html
|
|
|
|
subPath: roundcube-installation
|
2023-10-09 16:38:06 +02:00
|
|
|
resources:
|
|
|
|
limits:
|
2023-10-13 18:09:50 +02:00
|
|
|
memory: 256Mi"
|
2023-10-12 13:34:03 +02:00
|
|
|
cpu: "500m"
|
2023-10-09 16:38:06 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: roundcube
|
|
|
|
volumes:
|
|
|
|
- name: roundcube-persistent-storage
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: roundcube-pv-claim
|