Enable extension (kafka) in HiveMQ Platform Operator for Kubernetes

Hi,

I’ve deployed HiveMQ for AKS with HiveMQ Kubernetes Operator following this guide HiveMQ with Azure Kubernetes Service (AKS) , and it worked pretty well.
Now the issue I’m facing is how to enable an extension, in my case I want to enable Kafka in the HiveMQ.

First, I deploy the config.xml file as a Kubernetes ConfigMap.
Second, I add the following section to your HiveMQ Platform platform-values.yaml configuration file.
This is how my platform-values.yaml looks like:
hivemq:
nodeCount: “1”

ports:
- name: “mqtt”
port: 1883
expose: true
patch:
- ‘[{“op”:“add”,“path”:“/spec/type”,“value”:“LoadBalancer”}]’
- name: “cc”
port: 8080
expose: true
patch:
- ‘[{“op”:“add”,“path”:“/spec/sessionAffinity”,“value”:“ClientIP”}]’

monitoring:
dedicated: true
enabled: true

extensions:
- name: hivemq-kafka-extension
extensionUri: preinstalled
enabled: true
supportsHotReload: true
configMapName: “kafka-configuration”

But then, when I try to install the hivemq platform with:

helm upgrade -i hivemq hivemq/hivemq-platform -f platform-values.yaml -n nsoperator

I get the below error:

helm upgrade -i hivemq hivemq/hivemq-platform -f platform-values.yaml -n nsoperator
Error: UPGRADE FAILED: resource mapping not found for name: “hivemq” namespace: “” from “”: no matches for kind “HiveMQPlatform” in version “hivemq.com/v1
ensure CRDs are installed first

Has somebody found the same issue?
Thanks in advance,
Ramon

Hi @Ramon,

The guide HiveMQ with Azure Kubernetes Service (AKS) refers to the legacy hivemq-operator, while you’re using hivemq-platform, which belongs to the new hivemq-platform-operator.

Your error indicates that the required CRDs are missing, likely because the HiveMQ Platform Operator isn’t installed.

To fix this, follow the official installation guide:
:backhand_index_pointing_right: HiveMQ Platform Operator Quick Start

Best,
Dasha from The HiveMQ Team