Configure Email Notifications

    1. Log in to the web console with a user granted the role .

    2. Click Platform in the upper-left corner and select Platform Settings.

    3. Navigate to Notification Configuration under Notification Management, and then choose Email.

    4. Under Server Settings, configure your email server by filling in the following fields.

      • SMTP Server Address: The SMTP server address that provides email services. The port is usually .
      • SMTP Username: The SMTP account.
      • SMTP Password: The SMTP account password.
      • Sender Email Address: The sender’s email address.
    5. Click OK.
    1. Under Recipient Settings, enter a recipient’s email address and click Add.

    2. To remove a recipient, hover over the email address you want to remove, then click .

    Set notification conditions

    1. Select the checkbox on the left of Notification Conditions to set notification conditions.

      • Label: Name, severity, or monitoring target of an alerting policy. You can select a label or customize a label.
      • Operator: Mapping between the label and the values. The operator includes Includes values, Does not include values, Exists, and Does not exist.
    2. You can click Add to add notification conditions.

    3. After the configurations are complete, you can click Send Test Message for verification.

    4. On the upper-right corner, you can turn on the Disabled toggle to enbale notifications, or turn off the Enabled toggle to diable them.

      Note

      • After the notification conditions are set, the recepients will receive only notifications that meet the conditions.
      • If you change the existing configuration, you must click OK to apply it.

    After you configure the email server and add recipients, you need to enable and create an alerting policy for workloads or nodes. Once it is triggered, all the recipients can receive email notifications.

    Note

    • If you update your email server configuration, KubeSphere will send email notifications based on the latest configuration.
    • By default, KubeSphere sends notifications for the same alert about every 12 hours. The notification repeat interval is mainly controlled by in the Secret in the project . You can customize the interval as needed.