Prechádzať zdrojové kódy

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.
William Yang 4 rokov pred
rodič
commit
cd43bb42a7
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      deploy/charts/emqx/templates/service.yaml

+ 1 - 0
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 }}