Describe the bug
The documentation says:
All mail ports of the "front" POD will be simply exposed via the "hostPort" function.
But the front pod has only the following ports opened:
mailu-front-68bcb7cb4c-5fh6g:/app# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:10204 0.0.0.0:* LISTEN 13/nginx -g daemon
tcp 0 0 0.0.0.0:2525 0.0.0.0:* LISTEN 12/dovecot
tcp 0 0 0.0.0.0:14190 0.0.0.0:* LISTEN 12/dovecot
tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN 13/nginx -g daemon
tcp 0 0 0.0.0.0:10025 0.0.0.0:* LISTEN 12/dovecot
tcp 0 0 0.0.0.0:10143 0.0.0.0:* LISTEN 12/dovecot
tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 12/dovecot
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 13/nginx -g daemon
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 13/nginx -g daemon
Only port 80 and 25 are ready.
I reviewed the /etc/dovecot/proxy.conf and provided some environment variables:
front:
extraEnvVars:
- name: PORT_587
value: "1"
- name: TLS_993
value: "1"
- name: PORT_143
value: "1"
- name: TLS_465
value: "1"
That enables some dovecot proxy ports:
mailu-front-8f48fdd79-sdnms:/app# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 13/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13/dovecot
But what about the the TLS ports?
It looks like, that the whole Dovecot Proxy is not ready and the documentation misleading.
To Reproduce
Enable hostPorts
front:
hostPort:
enabled: true
And test for open ports on the node:
nc -vt localhost 25 # Always works (forwarded by Nginx)
nc -vt localhost 587 # fails
Also using externalService doesn't change anything on this behaviour:
front:
hostPort:
enabled: false
externalService:
enabled: true
type: LoadBalancer
externalTrafficPolicy: Local
Expected behavior
The ports should be opened, forwarded to postfix/dovecot or properly proxied.
Environment (please complete the following information):
- Helm Chart Version: 2.6.3
- Kubernetes Platform: k3s
Values.yaml Configuration
see above
Describe the bug
The documentation says:
But the
frontpod has only the following ports opened:Only port 80 and 25 are ready.
I reviewed the
/etc/dovecot/proxy.confand provided some environment variables:That enables some dovecot proxy ports:
But what about the the TLS ports?
It looks like, that the whole Dovecot Proxy is not ready and the documentation misleading.
To Reproduce
Enable hostPorts
And test for open ports on the node:
Also using
externalServicedoesn't change anything on this behaviour:Expected behavior
The ports should be opened, forwarded to postfix/dovecot or properly proxied.
Environment (please complete the following information):
Values.yaml Configuration
see above