From c88339164953ac3881b443d92bedf9d76422f08d Mon Sep 17 00:00:00 2001 From: ashish Date: Sun, 9 Jan 2022 13:30:19 +0530 Subject: [PATCH] Fix pending pods due to node affinity Signed-off-by: ashish --- consul/install.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/consul/install.go b/consul/install.go index c1806ae..c64564d 100644 --- a/consul/install.go +++ b/consul/install.go @@ -122,6 +122,11 @@ func (h *Consul) applyHelmChart(del bool, version string, ns string) (string, er Namespace: ns, CreateNamespace: true, Action: act, + OverrideValues: map[string]interface{}{ + "server": map[string]interface{}{ + "affinity": nil, //By default Consul does not allow more than one server pods on a single node + }, + }, ChartLocation: mesherykube.HelmChartLocation{ Repository: repo, Chart: chart,