From 5a8b1d82e8f876fabcb5a047d2324ae97e7784c8 Mon Sep 17 00:00:00 2001 From: Mark Burnett Date: Tue, 17 Jul 2018 16:22:34 -0500 Subject: [PATCH] Tolerate unready endpoints for apiserver service This avoids a race condition that can occur while joining nodes when another node is down. The service is really a discovery service that is primarily used by the haproxy chart to find apiserver endpoints, so it's reasonable for it to include all endpoints (HAProxy will monitor health on its own). Change-Id: I09dd66883af4ff91f9d13432137094fdf876ca83 --- charts/apiserver/templates/service.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/apiserver/templates/service.yaml b/charts/apiserver/templates/service.yaml index 11e19a41..8c40b0e7 100644 --- a/charts/apiserver/templates/service.yaml +++ b/charts/apiserver/templates/service.yaml @@ -21,6 +21,8 @@ apiVersion: v1 kind: Service metadata: name: {{ .Values.service.name }} + annotations: + service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" spec: ports: {{ if .Values.network.kubernetes_apiserver.enable_node_port }}