< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Set an Email Server for Pipelines

The built-in Jenkins cannot share the same email configuration with the notification system of KubeSphere Therefore, you need to configure an email server separately for DevOps pipelines.

Prerequisites

  • DevOps must have been installed and enabled.

  • You should have the Cluster Management permission on the KubeSphere platform.

Steps

  1. Log in to the KubeSphere web console with an account that has the Cluster Management permission.

  2. Click Cluster Management and enter a cluster.

  3. In the left navigation pane, select Application Workloads > Workloads, and choose the kubesphere-devops-system project from the dropdown list. Click more on the right side of devops-jenkins and select Edit YAML.

  4. Edit the fields in the YAML file as shown below. After making the changes, click OK.

    Warning

    After modifying the email server configuration, the devops-jenkins deployment will restart. Therefore, the DevOps system will be unavailable for a few minutes. Please modify these configurations at an appropriate time.

    Environment Variable Name Description

    EMAIL_SMTP_HOST

    SMTP server address.

    EMAIL_SMTP_PORT

    SMTP server port (e.g., 25).

    EMAIL_FROM_ADDR

    Email sender address.

    EMAIL_FROM_NAME

    Email sender name.

    EMAIL_FROM_PASS

    Email sender password.

    EMAIL_USE_SSL

    Whether to enable SSL configuration.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page