-
Hi, guys
Now, I want termination mTLS, and use tcp to connect to EMQX, have any example ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
I have an example that will solve your problem |
Beta Was this translation helpful? Give feedback.
-
Deploy HAProxy on K8S, terminate mTLS connectionGoals
Environment
Configuration
ArchitectureProcess
Remark
|
Beta Was this translation helpful? Give feedback.
Deploy HAProxy on K8S, terminate mTLS connection
Goals
Terminate mTLS on the HAProxy side
mTLS certificate mounted to HAProxy container using tls secret
haproxy.cfg mounted to the HAProxy container using configmap
HAProxy's backend service uses DNS name to route to EMQX pods
EMQX cluster is deployed using Operator
Enable proxy protocol v2, pass the CN field of the certificate to EMQX
Environment
HAProxy 1.8
EMQX Operator 1.2.2
Kubernetes 1.24
Configuration
The deployment of EMQX Operator uses the emqx-operator-controller.yaml file
mTLS configuration reference tls.yaml file
haproxy.cfg of EMQX Enterprise reference haproxy-cfg.yaml
HAProxy is deployed in k8s us…