Просмотр исходного кода

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 лет назад
Родитель
Сommit
cd43bb42a7
1 измененных файлов с 1 добавлено и 0 удалено
  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 }}