/
No HiveMQ pods are spawned
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
Describe the
replicaSets
:kubectl describe replicasets --namespace my-namespace
you see
hivemq-operator
andhivemq-cluster
'sreplicaSets
:NAME DESIRED CURRENT READY AGE hivemq-6bb74cdd8b 1 1 0 4s hivemq-hivemq-operator-operator-5c788c6c4 1 1 1 55s
Get detained information from the
hivemq-cluster
'sreplicaSet
:kubectl get replicaset hivemq-6bb74cdd8b -o yaml > output.yaml
Search for any errors in the
conditions:
section. The error message will indicate why the creation of thehivemq-cluster
pod has failed:
*This is an example error:conditions: - lastTransitionTime: "2022-09-22T12:58:03Z" message: 'pods "hivemq-5464688645-" is forbidden: unable to validate against any security context constraint: [provider "anyuid": Forbidden: not usable by user or serviceaccount, spec.initContainers[0].securityContext.runAsUser: Invalid value: 1000: must be in the ranges: [1000670000, 1000679999], spec.containers[0].securityContext.runAsUser: Invalid value: 1000: must be in the ranges: [1000670000, 1000679999], provider "restricted": Forbidden: not usable by user or serviceaccount, provider "nonroot-v2": Forbidden: not usable by user or serviceaccount, provider "nonroot": Forbidden: not usable by user or serviceaccount, provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount, provider "machine-api-termination-handler": Forbidden: not usable by user or serviceaccount, provider "hostnetwork-v2": Forbidden: not usable by user or serviceaccount, provider "hostnetwork": Forbidden: not usable by user or serviceaccount, provider "hostaccess": Forbidden: not usable by user or serviceaccount, provider "node-exporter": Forbidden: not usable by user or serviceaccount, provider "privileged": Forbidden: not usable by user or serviceaccount]' reason: FailedCreate status: "True" type: ReplicaFailure
Now you can fix the error and retry the
helm upgrade
.
Related articles
, multiple selections available,
Related content
HiveMQ platform operator pod fails to start
HiveMQ platform operator pod fails to start
More like this
Configuring the HiveMQ Platform for One Pod per Kubernetes Node
Configuring the HiveMQ Platform for One Pod per Kubernetes Node
More like this
How to Configure Pod Node-Affinity for HiveMQ Platform (new) on Kubernetes
How to Configure Pod Node-Affinity for HiveMQ Platform (new) on Kubernetes
More like this
How to Configure Pod Anti-Affinity for HiveMQ Platform (new) on Kubernetes
How to Configure Pod Anti-Affinity for HiveMQ Platform (new) on Kubernetes
More like this
HiveMQ Kubernetes Operator UPGRADE FAILED: post-upgrade hooks failed: job failed
HiveMQ Kubernetes Operator UPGRADE FAILED: post-upgrade hooks failed: job failed
Read with this
Configuring Private Docker Image Access for HiveMQ Platform Operator
Configuring Private Docker Image Access for HiveMQ Platform Operator
More like this