Set Email Server for KubeSphere Pipeline
In current version (v2.1.x), the built-in Jenkins cannot share the same email configuration with platform notification system. Thus we need to set email server for KubeSphere DevOps pipeline separately.
Note: Please be aware that the modification of the email server in
ks-jenkins
deployment below will restart the deployment itself. Consequently, the DevOps system will be unavailable for a few minutes. Please make such modification at an appropriate time.
- Log in KubeSphere by using
admin
account, navigate to System-workspace → Projects → kubesphere-devops-system.
- Then go to Application Workloads → Workloads, choose Deployments and drill into ks-jenkins. Then choose Edit Config Template from More drop-down list. Then choose Pod Template in the pop-up window and click the edit icon of the container image ks-jenkins. Scroll down the panel you will see the following environments that you need to configure. Finally click Confirm to save the changes.
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 open SSL configuration |
当前内容版权归 KubeSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 KubeSphere .