Hi everyone, thanks for having a look at my issue!
I am trying to get through the tutorial for using the HiveMQ Kubernetes Operator (link), however I can’t get through it.
My first issue was that I could only get the
helm upgrade command to run when using the workaround from this thread.
After that, when I am executing
kubectl get hivemq-clusters it does not give me the complete result that would be expected in the tutorial:
% kubectl get hivemq-clusters NAME SIZE IMAGE VERSION STATUS ENDPOINT MESSAGE hivemq 1 hivemq/hivemq4 k8s-4.8.2
The fields STATUS, ENDPOINT and MESSAGE are always empty. I also don’t see any pods that are created by the operator:
kubectl get pods NAME READY STATUS RESTARTS AGE hivemq-hivemq-operator-operator-5479d9888f-f6xdb 0/1 Pending 0 11m
I have seen this behaviour locally on minikube and on my managed Kubernetes cluster in the cloud as well. I hope that you can help me, debug the issue. Thanks in advance!
Update: I could get the operator running by increasing the memory limit. The 512M from the default values.yaml don’t seem to be enough to run the operator.
I added this to myCustomValues.yaml (I am pretty sure that less than 4G of memory would also be enough):
operator: resources: limits: memory: 4096M
However, the operator still does not provision my nodes. Some further information:
% kubectl get pods NAME READY STATUS RESTARTS AGE hivemq-hivemq-operator-operator-8585c48d97-9qqgv 1/1 Running 0 2m46s
% kubectl logs hivemq-hivemq-operator-operator-8585c48d97-9qqgv Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=80 -XX:MinRAMPercentage=30 12:56:47.330 [main] INFO com.hivemq.Application - Preparing SSL files 12:56:55.652 [main] INFO com.hivemq.Application - Wrote converted key store to /tmp/store.p12 __ __ _ _ | \/ (_) ___ _ __ ___ _ __ __ _ _ _| |_ | |\/| | |/ __| '__/ _ \| '_ \ / _` | | | | __| | | | | | (__| | | (_) | | | | (_| | |_| | |_ |_| |_|_|\___|_| \___/|_| |_|\__,_|\__,_|\__| Micronaut (v2.4.2) 12:57:23.730 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 28000ms. Server Running: https://hivemq-hivemq-operator-operator-8585c48d97-9qqgv:8443 12:57:29.759 [main] INFO com.hivemq.Operator - Operating from namespace 'default' 12:57:29.760 [main] INFO com.hivemq.Operator - Initializing HiveMQ operator 12:57:40.535 [main] INFO com.hivemq.Operator - Operator started in 10775ms 12:57:40.619 [pool-1-thread-1] INFO com.hivemq.AbstractWatcher - CustomResource watcher running for kinds HiveMQCluster 12:57:49.528 [pool-1-thread-2] INFO com.hivemq.Operator - Syncing state for cluster hivemq
% kubectl get hivemq-cluster NAME SIZE IMAGE VERSION STATUS ENDPOINT MESSAGE hivemq 2 hivemq/hivemq4 k8s-4.8.2 Pending Initial status
Content of myCustomValues.yml:
hivemq: nodeCount: "2" cpu: "2" memory: "2Gi" operator: resources: limits: memory: 4096M