docs/operator-manual/notifications/services/nats.md
This notification service is capable of sending simple messages via Nats.
nats://nats:4222Resource Annotation:
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
annotations:
notifications.argoproj.io/subscribe.on-deployment-ready.nats: "mytopic"
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-notifications-cm
data:
service.nats: |
url: "nats://nats:4222"
headers:
my-header: "my-value"
template.deployment-ready: |
message: |
Deployment {{.obj.metadata.name}} is ready!
trigger.on-deployment-ready: |
- when: any(obj.status.conditions, {.type == 'Available' && .status == 'True'})
send: [deployment-ready]
- oncePer: obj.metadata.annotations["generation"]