Preparation:
- Create a Bot in Webex Teams.
- Grab the generated
access_token
and invite the Bot in a channel (or create a new one). - Call the API for the
room_id
curl -s -X GET -H 'Authorization: Bearer XXXXXXXXXXXXX' https://webexapis.com/v1/rooms | jq .
- Create a K8S secret in the namespace where the AlertManager exists with the Webex API Bearer Token:
kubectl -n demoapp create secret generic alertmanager-webex \
--from-literal=WEBEX_TOKEN='XXXXXXXX' \
- Provide
roomID
in one of these examples:
Gatekeeper Constraint Templates