christianhuth / helm-charts

Helm Charts for various Applications: https://charts.christianhuth.de
MIT License
33 stars 18 forks source link

[MailDev] Separate SMTP and web ports on Pod and k8s Service #1036

Closed redzioch closed 5 months ago

redzioch commented 5 months ago

I came across a case that on some Docker images (eg. openjdk) there are problems with communication with SMTP server on non-standard ports, eg. MailDev default 1025. I do not know for what reasons this happens - from a pure Debian image I had no problems connecting to MailDev SMTP service on 1025.

MaiDev can not be configured to use port like 25 - it runs as non-root user and therefore it is forbidden to use ports below 1024.

As a workaround I propose to separate Pod ports (used by MailDev) and k8s Service ports, exposed to other applications.

I have added two more variables to values.yaml: services.smtp.podPort (with default value 1025) and services.web.podPort (with default value 1080).

This change is backwards compatible and allows to set any service ports including 25 or 80.

christianhuth commented 5 months ago

Thanks for your contribution @redzioch!