ungleich-user/deploy/k8s/dev/mailpit.yaml
Sajeyks 66d074c54a Add a kind dev overlay with an end-to-end check
deploy/k8s/dev runs the base with 2 replicas alongside throwaway
services: two independent OpenLDAP servers (the dev image), PostgreSQL
18 and Mailpit.

deploy/k8s/dev/e2e.sh checks a running deployment: both probes,
registration with the activation mail sent over SMTP (and no password
in it), activation, login, and login and readiness while ldap1 is
scaled to zero. All checks pass.
2026-11-06 15:53:58 +03:00

29 lines
669 B
YAML

# Catches outgoing mail in the dev overlay. Web UI / API on port 8025:
# kubectl -n ungleich-user-dev port-forward svc/mailpit 8025
apiVersion: apps/v1
kind: Deployment
metadata:
name: mailpit
spec:
selector:
matchLabels: {app: mailpit}
template:
metadata:
labels: {app: mailpit}
spec:
containers:
- name: mailpit
image: axllent/mailpit:v1.27
ports:
- {name: smtp, containerPort: 1025}
- {name: http, containerPort: 8025}
---
apiVersion: v1
kind: Service
metadata:
name: mailpit
spec:
selector: {app: mailpit}
ports:
- {name: smtp, port: 1025}
- {name: http, port: 8025}