MS Teams setup¶
The agent posts through a Teams Workflows webhook (the old "Incoming Webhook" connectors were retired). The cards look and behave as described in reports.md.
- Webhook. In the channel, … → Workflows → template "Send webhook alerts to a channel" → name it (e.g. k8s-servant my-cluster) → Save, and copy the URL. Add a co-owner to the flow so it does not depend on one person. Reusing the webhook of an existing channel (for example the one Alertmanager posts to) also works.
- Secret store. The URL is a password. Keep it in a secret store (for example
Azure Key Vault, secret
teams-webhook-urlinmy-keyvault). In the cluster the agent reads it from a Kubernetes Secret named inteamsWebhook.existingSecret, which you create with kubectl, External Secrets or any other tool (how). - Test. Load the URL into your shell (see
Secrets: local vs cluster).
k8s-servant doctorshould show[OK] teams. ThenTEAMS_POST_MODE=always k8s-servant check --postposts a check card, andk8s-servant report --postthe morning report.
Cards stay under Teams' size limit: with many findings, details are shortened and lists end with "… and N more".