按照下列步骤配置电子邮件通知。

  1. 打开systemlink-values.yaml
  2. smtp.smtpServer.host设置为SMTP主机的名称或IP地址。
  3. smtp.smtpServer.port设置为SMTP端口。
  4. smtp.smtpServer.fromAddress设置为发送电子邮件的地址。
  5. 可选: 如果SMTP服务器需要使用凭据进行身份验证,请完成以下步骤。
    1. systemlink-values.yaml中,将smtp.smtpServer.requireAuthentication设置为true
    2. smtp.secrets.smtpServer下的systemlink-secrets.yaml文件中添加用户名和密码。
  6. 可选: 如与SMTP服务器的连接需要SSL,请将smtp.smtpServer.enableSsl设置为true。
  7. 可选: 使用smtp.smtpServer.timeoutSeconds值配置超时,单位为秒。