apiVersion: v1
kind: ConfigMap
metadata:
  name: alertmanager-config
  namespace: kube-system
  labels:
    kubernetes.io/cluster-service: "true"
    addonmanager.kubernetes.io/mode: EnsureExists
data:
  alertmanager.yml: |
    global:
      resolve_timeout: 5m
      smtp_smarthost: 'smtp.qq.com:465'
      smtp_from: '1473236447@qq.com'
      smtp_auth_username: '1473236447@qq.com'
      smtp_auth_password: 'xkogepyxzkyrjidg'
      smtp_require_tls: false

    route:
       group_by: ['alertname']
       group_wait: 10s
       group_interval: 10s
       repeat_interval: 1m
       receiver: 'email'
    receivers:
     - name: 'email'
       email_configs:
       - to: 'wulinjiang1@kingsoft.com'