...
Deploy Hivemq operator with 0.8.7
Code Block language bash helm upgrade --version 0.8.7--install -f operator.yaml <release name> hivemq/hivemq-operator —version 0.8.7
Apply Hivemq cluster with hivemq 4.6.2
Kubectl applyCode Block language bash kubectl apply -f <hivemq cluster.yaml>
Simply apply the new CRD using the following command (considering k8s version is 1.16+)
Note: This step can be skipped if you are using BladeCenter.kubectl apply -f https://raw.githubusercontent.com/hivemq/helm-charts/prerelease-4.6.4/charts/hivemq-operator/crds/hivemq-cluster.yaml
Scale operator to 0 so it doesn’t immediately reconcile. This will only remove the operator pod, but leave the HiveMQ nodes as remaining
kubectl scale —replicas=0 deployment <operator name>
Edit hivemq cluster yaml to update the hivemq version as 4.6.4
Apply the changes
Kubectl apply -f <hivemq cluster.yaml>
check the pods status(no errors)
kubectl get pods
Update operaor version i.e 0.9.2 in cluster(operator config File)
Run following command for rolling upgrade
helm upgrade --install -f operator.yaml <release name> hivemq/hivemq-operator —version 0.9.2