jouve / charts

GNU General Public License v3.0
11 stars 18 forks source link

Accessing mailpit-smtp service via ingress #58

Closed Bobses closed 1 month ago

Bobses commented 1 month ago

Hello,

Is there any possibility to access the mailpit-smtp service from Kubernetes through an ingress? In other words, can messages be sent to mailpit installed in kubernetes from an external application (an app created outside Kubernetes, where mailpit-smtp.namespace.svc.cluster.local cannot be used)?

I tried to create a working ingress for the mailpit-smtp service but without success.

I didn't find any discussion about this.

Thank you!

jouve commented 1 month ago

Hi,

Most ingress only supports http(s).

For TCP protocols like SMTP, you can set the service type to LoadBalancer (your cluster need to support this)

Bobses commented 1 month ago

Thank you for your answer.

The solution I found for traefik ingress controller (it creates an NLB in AWS):

It seems to work. I'm looking for a solution when the ingress-nginx controller is used.