...
2. In the case you are using HiveMQ Operator, the following config is also required to be configured in your values.yaml. In addition, if you are using a load balancer then please enable the sticky session
feature for it as well.
Code Block |
---|
- name: "cc" port: 8080 expose: true patch: - '[{"op":"add","path":"/spec/sessionAffinity","value":"ClientIP"}]' |
If you have created a service to expose the control center port, please add the following line to your service spec:
sessionAffinity: "ClientIP"
. You can refer to the example below for guidance:
Code Block |
---|
kind: Service
apiVersion: v1
metadata:
name: hivemq-service
labels:
app: hivemq
hivemq-cluster: hivemq-cluster1
spec:
sessionAffinity: "ClientIP"
selector:
hivemq-cluster: hivemq-cluster1
ports:
- name: cc
protocol: TCP
port: 8080
targetPort: 8080
type: LoadBalancer |
\uD83D\uDCCE Related articles
...
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|