Sends alerts via SMTP. Uses HTML formatting for rich email content.
| Parameter | Description | Required |
|---|---|---|
alert.email.from | 📧 Sender email address | Yes |
alert.email.to | 📧 Recipient email address | Yes |
alert.email.password | 🔑 SMTP password or app password | Yes |
alert.email.host | 🖥️ SMTP server hostname | Yes |
alert.email.port | 🔌 SMTP server port (e.g. 587) | Yes |
Example
apiVersion: v1
kind: Namespace
metadata:
name: kwatch
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kwatch
namespace: kwatch
data:
config.yaml: |
alert:
email:
from: "[email protected]"
to: "[email protected]"
password: "your-smtp-password"
host: "smtp.gmail.com"
port: "587"
Routing
alert:
email:
password: "..."
host: "smtp.gmail.com"
port: "587"
routes:
- namespaces: ["production"]
severities: ["high", "critical"]
- reasons: ["OOMKilled"]
Retry
alert:
email:
password: "..."
host: "smtp.gmail.com"
port: "587"
retry:
maxAttempts: 5
delay: 5s
Fallback
alert:
email:
password: "..."
host: "smtp.gmail.com"
port: "587"
fallback: slack