Skip to content

Commit

Permalink
Improve response time of health endpoint to avoid timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schneppenheim committed Oct 31, 2019
1 parent 23d0bca commit 7ee157b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 7ee157b

Please sign in to comment.