From 7ee157b98a80e0e8aac619094586635d91b3b0e9 Mon Sep 17 00:00:00 2001 From: Martin Schneppenheim Date: Thu, 31 Oct 2019 07:33:40 +0100 Subject: [PATCH] Improve response time of health endpoint to avoid timeouts --- kubernetes/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/client.go b/kubernetes/client.go index e7feab7..22b885f 100644 --- a/kubernetes/client.go +++ b/kubernetes/client.go @@ -107,7 +107,7 @@ func (c *Client) NodeMetricses() (*v1beta1.NodeMetricsList, error) { // IsHealthy returns whether the kubernetes client is able to get a list of all pods func (c *Client) IsHealthy() bool { - _, err := c.apiClient.CoreV1().Pods(metav1.NamespaceDefault).List(metav1.ListOptions{}) + _, err := c.apiClient.CoreV1().Pods(metav1.NamespaceSystem).List(metav1.ListOptions{}) if err != nil { log.WithFields(log.Fields{ "error": err.Error(),