Proxy protocol on VerneMQ kubernetes operator.

99 views
Skip to first unread message

Eduardo Hering

unread,
Mar 30, 2021, 8:04:53 PM3/30/21
to vernemq-users
Hi.
I successfully managed to install an HAProxy Ingress Controller and a VerneMQ kubernetes operator on the same k8s cluster. Both were configured to use proxy-protocol-v2. But when I ask vmc-admin to show sessions it shows only reserved IPs:

|        69:02:b8:50:6d:c8        |  true   |          |10.240.0.4 |  4256   |xxxx |
|        69:02:b8:71:eb:f4        |  true   |          |10.240.0.4 |  23573  |xxxx |
|        69:02:b8:63:bc:34        |  true   |          |10.240.0.6 |  24889  |xxxx |
|        69:02:b8:71:ee:c7        |  true   |          |10.240.0.6 |  25818  |xxxx |
|        69:02:b8:5b:7c:1f        |  true   |          |10.240.0.6 |  60822  |xxxx |
|        69:02:b8:5f:31:64        |  true   |          |10.240.0.4 |  3215   |xxxx |
|        69:02:b8:5c:60:a9        |  true   |          |10.240.0.5 |  37592  |xxxx |
+---------------------------------+---------+----------+-----------+---------+----+

My vernemq-vernemq.yaml file has the following definitions:
...
 listeners:
- address: 0.0.0.0
port: 1883
maxConnections: 10000
nrOfAcceptors: 10
proxyProtocol: true
...

I am able to connect to the cluster from outside using TLS terminated on HAProxy.

Can somebody please help?


André Fatton

unread,
Mar 31, 2021, 3:44:28 AM3/31/21
to vernemq-users
Hi Eduardo,
I can't really help with Kubernetes networking, but I'm curious what's happening here.
Clearly, there are multiple MQTT sessions coming from the same IPs, so the first question I guess is what those IPs are. Is this from a load test you run?
Best,
André
Reply all
Reply to author
Forward
0 new messages