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:
Install the HiveMQ Platform Operator:
helm install platform-op hivemq/hivemq-platform-operator
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>
Set the license in the HiveMQ Platform values.yaml:
Generate thevalues.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: "" ...
Deploy the HiveMQ broker:
helm upgrade --install -f hivemq_values.yaml hivemq hivemq/hivemq-platform