\uD83D\uDCD8 Instructions
Clone the repo with hivemq-operator charts locally.
This will create a local copy of the charts saved to the helm-charts subdirectory.git clone https://github.com/hivemq/helm-charts.git
tree -L 1 . └── helm-charts
Update dependencies.
This command verifies that the required charts, as expressed in 'Chart.yaml', are present in 'charts/' and are at an acceptable version. It will pull down the latest charts that satisfy the dependencies, and clean up old dependencies.helm dependencies update helm-charts/charts/hivemq-operator
Edit operator templates, and update the livenessProbe’s declaration.
Edit the operator templates:
helm-charts/charts/hivemq-operator/operator-tmpls/cluster-daemon-set.yaml
helm-charts/charts/hivemq-operator/operator-tmpls/cluster-deployment.yaml
helm-charts/charts/hivemq-operator/operator-tmpls/cluster-stateful-set.yaml
Find the existing declaration of the livenessProbe:
livenessProbe: tcpSocket: port: {{ util:getPort(spec, "mqtt").port }} initialDelaySeconds: 15 periodSeconds: 30 failureThreshold: 240
Replace with the new declaration of the livenessProbe:
livenessProbe: httpGet: path: /heartbeat port: {{ util:getPort(spec, "heartbeat").port }} initialDelaySeconds: 30 periodSeconds: 15 failureThreshold: 240
Get the values.yaml file for the hivemq-operator:
helm show values hivemq/hivemq-operator > my-values.yaml
Edit the my-values.yaml file:
Add the heartbeat extension to the end of the
hivemq.extensions
array:hivemq: ... extensions: ... ... - name: hivemq-heartbeat-extension extensionUri: https://github.com/hivemq/hivemq-heartbeat-extension/releases/download/1.0.4/hivemq-heartbeat-extension-1.0.4.zip enabled: true
Add the heartbeat port to the end of the
hivemq.ports
array:hivemq: ... ports: ... ... - name: "heartbeat" port: 9090 expose: true
Using Helm, install hivemq-operator from the local directory containing updated operator templates and use the updated my-values.yaml:
helm upgrade my-hivemq \ --install helm-charts/charts/hivemq-operator \ --values my-values.yaml
When the hivemq-operator and hivemq pods are ready, monitor the event.log:
kubectl exec pod/my-hivemq-abcdefgh -- tail -f log/event.log