net-kingdom/sso-mfa/k8s/authelia/smtp-networkpolicy.yaml
tegwick 8620c47655 Prepare platform SMTP notifier and scoped Authelia custody
Assistant: codex
Assistant-Model: gpt-6.1-sol
Assistant-Session: 01a10e2d-a5ef-7e92-b03d-b1694e915680
2026-10-06 19:30:58 +02:00

26 lines
499 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-authelia-smtp-egress
namespace: sso
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: authelia
policyTypes:
- Egress
egress:
- to:
- ipBlock:
cidr: 0.0.0.0/0
except:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
- 127.0.0.0/8
- 169.254.0.0/16
- 224.0.0.0/4
- 240.0.0.0/4
ports:
- protocol: TCP
port: 587