Maven / ArgoCD interview questions
How does ArgoCD handle notifications and what channels does it support?
ArgoCD Notifications is a separate controller (shipped as part of the ArgoCD Helm chart and optionally in the install manifest) that sends alerts and messages when ArgoCD Application events occur. It subscribes to Application state changes and triggers configured notification services when conditions are met.
The notification system has three components:
- Triggers: conditions that activate a notification (e.g.,
on-sync-succeeded,on-health-degraded,on-sync-failed). You can also write custom trigger expressions. - Templates: message content rendered as text or structured blocks (Slack attachments, email HTML). Templates use Go template syntax and have access to the Application object.
- Services: the channels where messages are sent. Configured in a Secret (
argocd-notifications-secret) and a ConfigMap (argocd-notifications-cm).
Supported notification channels include: Slack, Microsoft Teams, Email (SMTP), PagerDuty, OpsGenie, GitHub (commit status), Bitbucket, Grafana annotations, Rocketchat, Telegram, Webhook (generic HTTP), and more via community contributions.
# Subscribe an Application to a notification
metadata:
annotations:
notifications.argoproj.io/subscribe.on-sync-failed.slack: my-deployments-channel
notifications.argoproj.io/subscribe.on-health-degraded.pagerduty: "true"Subscriptions are set as annotations on the Application resource. This means different teams can subscribe their applications to different channels without central coordination, and the configuration lives in Git alongside the Application manifest.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
