Skip to content

How to termination of mTLS, and use tcp to connect to EMQX #312

Answered by Gala-R
Rory-Z asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@xtianus79
Comment options

@xtianus79
Comment options

@xtianus79
Comment options

@xtianus79
Comment options

@xtianus79
Comment options

Answer selected by Gala-R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants