kube/wildduck/rspamd.yaml

80 lines
1.7 KiB
YAML
Raw Normal View History

2023-08-24 05:34:21 +00:00
---
2023-08-24 16:53:07 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
name: rspamd
data:
logging.inc: |
type = console;
level = "notice";
worker-normal.inc: |
bind_socket = "*:11333";
---
2023-08-24 05:34:21 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: rspamd
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: rspamd
template:
metadata:
labels:
app.kubernetes.io/name: rspamd
spec:
securityContext:
runAsUser: 1000
runAsNonRoot: true
fsGroup: 1000
containers:
- name: rspamd
image: mirror.gcr.io/codemowers/rspamd
2023-08-24 05:34:21 +00:00
ports:
- containerPort: 11333
name: rspamd
securityContext:
readOnlyRootFilesystem: true
resources:
limits:
cpu: 500m
2024-08-24 21:12:25 +00:00
memory: 300Mi
2023-08-24 05:34:21 +00:00
requests:
cpu: 10m
2024-08-24 21:12:25 +00:00
memory: 150Mi
2023-08-24 05:34:21 +00:00
volumeMounts:
- name: var-lib-rspamd
mountPath: /var/lib/rspamd
2023-08-24 16:53:07 +00:00
- name: var-run
mountPath: /run/rspamd
- name: rspamd-config
mountPath: /etc/rspamd/local.d
readOnly: true
2023-08-24 05:34:21 +00:00
volumes:
- name: var-lib-rspamd
emptyDir:
sizeLimit: 1Gi
- name: var-run
emptyDir:
medium: Memory
- name: var-lib-nginx-tmp
emptyDir:
medium: Memory
2023-08-24 16:53:07 +00:00
- name: rspamd-config
projected:
sources:
- configMap:
name: rspamd
2023-08-24 05:34:21 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: rspamd
spec:
selector:
app.kubernetes.io/name: rspamd
ports:
2024-08-15 06:37:24 +00:00
- port: 11333
name: rspamd