From e78967cfc350bec9a11984d3536b69cebf05c0ad 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 f019c5614..8a1a6a212 100644 --- a/deploy/charts/emqx/templates/service.yaml +++ b/deploy/charts/emqx/templates/service.yaml @@ -121,6 +121,7 @@ spec: type: ClusterIP sessionAffinity: None clusterIP: None + publishNotReadyAddresses: true ports: - name: mqtt port: {{ .Values.service.mqtt | default 1883 }}