Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This article explains how to use Kubernetes Secret to specify a HiveMQ license with HiveMQ Operator.

\uD83D\uDCD8 Instructions

  1. Edit the values.yaml file to specify that the license file is contained in hivemq-license secret, which will be mounted to the directory /opt/hivemq/license

    Code Block
    languageyaml
    hivemq:
    ...
      secrets: 
      # Secrets to mount to the HiveMQ pods. These can be mounted to existing directories without shadowing the folder contents as well.
      - name: hivemq-license
        path: /opt/hivemq/license
    ...
  2. If there is no namespace for the HiveMQ, then create one and switch the kubectl context to it

    Code Block
    languagebash
    kubectl create ns hivemq
    kubectl ns hivemq
  3. Create the secret with nave hivemq-license in the namespace hivemq from the license file hivemq-2023.lic

    Code Block
    languagebash
    kubectl create secret generic hivemq-license \
      --from-file hivemq-license.lic \
      --namespace hivemq
  4. Install HiveMQ with the release name hivemq-mine from the Helm chart hivemq-operator to the namespace hivemq and use parameter values from the file values.yaml

    Code Block
    languagebash
    helm upgrade hivemq-mine \
      --install hivemq/hivemq-operator \
      --namespace hivemq\
      --values values.yaml

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@957
sortmodified
showSpacefalse
reversetrue
typepage
excerptTyperich content
cqllabel = "kb-how-to-articlelicense" and type = "page" and space = "KB"
labelskb-how-to-article