49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mailu-antispam
|
|
namespace: bakery-ia
|
|
labels:
|
|
app: mailu
|
|
component: antispam
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: mailu
|
|
component: antispam
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mailu
|
|
component: antispam
|
|
spec:
|
|
containers:
|
|
- name: antispam
|
|
image: ghcr.io/mailu/rspamd:2024.06
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 11333
|
|
name: rspamd
|
|
- containerPort: 11334
|
|
name: rspamd-admin
|
|
envFrom:
|
|
- configMapRef:
|
|
name: mailu-config
|
|
- secretRef:
|
|
name: mailu-secrets
|
|
volumeMounts:
|
|
- name: mailu-data
|
|
mountPath: /data
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
volumes:
|
|
- name: mailu-data
|
|
persistentVolumeClaim:
|
|
claimName: mailu-data
|