apiVersion: v1
kind: ConfigMap
metadata:
  name: alertmanager-conf
  labels:
    name: alertmanager-conf
  namespace: monitoring
data:
  alertmanager.yml: |
    global:
      smtp_smarthost: 'localhost:25'
      smtp_from: 'alertmanager@localhost.com'
      smtp_require_tls: false
    route:
      receiver: slack_receiver
    receivers:
    - name: slack_receiver
      slack_configs:
      - send_resolved: true
        username: 'arunava.basu'
        api_url: 'https://hooks.slack.com/services/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'
        channel: '#alerts'
