No HiveMQ pods are spawned

 Problem

Deploying a HiveMQ cluster from the hivemq-operator Helm chart to a Kubernetes cluster:

helm upgrade hivemq --install hivemq/hivemq-operator \ --values my-values.yaml --namespace my-namespace

Checking if all expected pods are spawned:

kubectl get pods --namespace my-namespace

shows only the hivemq-operator pod:

NAME READY STATUS RESTARTS AGE hivemq-hivemq-operator-operator-5c788c6c4-5krrz 1/1 Running 0 19s

Problem is how to troubleshoot this.

 Solution

  1. Describe the replicaSets:

    you see hivemq-operator and hivemq-cluster's replicaSets:

  2. Get detained information from the hivemq-cluster's replicaSet:

  3. Search for any errors in the conditions: section. The error message will indicate why the creation of the hivemq-cluster pod has failed:
    *This is an example error:

  4. Now you can fix the error and retry the helm upgrade.