From cd43bb42a7266f7a7b6d293dbe44c1277423a9e4 Mon Sep 17 00:00:00 2001 From: William Yang Date: Thu, 2 Sep 2021 18:37:29 +0200 Subject: [PATCH] fix(helm-chart): force headless svc ready while pod is not ready fixs: #5254 The dist port behind headless svc should to be accessible during emqx cluster boot. Endpoints of headless SVC is not in 'ready' state that prevents nodes to talk to each other, this issue only happens when K8s host node is restarted and all emqx nodes are deployed on the same host. --- deploy/charts/emqx/templates/service.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/charts/emqx/templates/service.yaml b/deploy/charts/emqx/templates/service.yaml index 3e9f06b52..54efa6426 100644 --- a/deploy/charts/emqx/templates/service.yaml +++ b/deploy/charts/emqx/templates/service.yaml @@ -112,6 +112,7 @@ spec: type: ClusterIP sessionAffinity: None clusterIP: None + publishNotReadyAddresses: true ports: - name: mqtt port: {{ .Values.service.mqtt | default 1883 }}