webserver-k8s/kustomize/roundcube-deployment.yaml

41 lines
988 B
YAML
Raw Normal View History

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-10 15:41:43 +02:00
value: mail-dovecot
2023-10-09 16:38:06 +02:00
- name: ROUNDCUBEMAIL_SMTP_SERVER
2023-10-10 15:41:43 +02:00
value: mail-postfix
2023-10-09 16:38:06 +02:00
- name: ROUNDCUBEMAIL_DB_TYPE
value: sqlite
volumeMounts:
- name: roundcube-persistent-storage
mountPath: /var/roundcube
resources:
limits:
2023-10-09 18:02:44 +02:00
memory: "128Mi"
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