Setting Up HiveMQ License for Your HiveMQ Cluster using HiveMQ Platform Operator

This guide provides step-by-step instructions on how to set up a HiveMQ license for your HiveMQ cluster.

 Instructions

Here are the steps to follow:

  1. Install the HiveMQ Platform Operator:

    helm install platform-op hivemq/hivemq-platform-operator
  2. Create a secret for the HiveMQ license:
    Use the following command to create a Kubernetes secret for the HiveMQ license, replacing <path/to/your/lic/file> with the actual path to your license file:

    kubectl create secret generic hivemq-license --from-file <path/to/your/lic/file>

    You can add multiple licenses with the option --from-file, for example: Adding license Enterprise bridge extension, Enterprise Security extension or any other enterprise extension.
    Please refer following command.

    kubectl create secret generic hivemq-license --from-file <path/to/your/lic/file> --from-file <path/to/your/ese.lic>
  3. Set the license in the HiveMQ Platform values.yaml:
    Generate the values.yaml file for the HiveMQ Platform:

    helm show values hivemq/hivemq-platform > hivemq_values.yaml

    Edit the hivemq_values.yaml file, locate the "license" block and configure the name of the secret to be the same as the one created in the previous step. Refer to the following example:

    ... # Configures the HiveMQ License information. license: # The name of a secret with the License information. Add all required licenses into the secret. name: "hivemq-license" # Inlines the License information as an encoded 64-bytes string. data: "" # Overrides the License information via file using --set-file license.lic. overrideLicense: "" ...
  4. Deploy the HiveMQ broker:

    helm upgrade --install -f hivemq_values.yaml hivemq hivemq/hivemq-platform

 

 Related articles