Install Operator and Deploy EMQX
This section guides you through preparing the environment for EMQX Operator, installing the Operator itself, and using it to deploy EMQX. By following the steps provided, you can install and manage EMQX efficiently and reliably with the Operator.
Prepare the Environment
Before deploying EMQX Operator, ensure that the following components are ready:
A Kubernetes environment running Kubernetes version 1.24 or higher.
A kubectl tool that can access the Kubernetes cluster. You can check the status of the Kubernetes cluster using
kubectl cluster-infocommand.Helm 3 or higher
Install EMQX Operator
Install and start
cert-manager.TIP
cert-managerversion1.1.6or higher is required. Skip this step if thecert-manageris already installed and started.You can use Helm to install
cert-manager.bash$ helm repo add jetstack https://charts.jetstack.io $ helm repo update $ helm upgrade --install cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ --set crds.enabled=trueAlternatively, follow the official cert-manager installation guide.
Install the EMQX Operator with the command below:
bash$ helm repo add emqx https://repos.emqx.io/charts $ helm repo update $ helm upgrade --install emqx-operator emqx/emqx-operator \ --namespace emqx-operator-system \ --create-namespaceWait till EMQX Operator is ready:
bash$ kubectl wait --for=condition=Ready pods -l "control-plane=controller-manager" -n emqx-operator-system pod/emqx-operator-controller-manager-57bd7b8bd4-h2mcr condition met
Once the Operator is running, you can proceed to deploy EMQX.
Deploy EMQX
Deploy on Public Cloud
Use the following guides to deploy EMQX on managed Kubernetes services using the EMQX Operator: