---
title: kubectl commands are failing due to proxy
slug: install-10x/kubectl-commands-are-failing-due-to-proxy
docTags: 
createdAt: 2025-12-09T12:27:36.889Z
---

Kubectl commands may fail with the following error:

:::BlockQuote
E0403 14:04:05.944359 3116197 memcache.go:265] couldn't get current server API group list: Get "https\://swimlane.dev.swimlane.example.com:6443/api?timeout=32s": Service Unavailable

:::

1. Check if there is a proxy enabled in the environment

:::BlockQuote{indent="1"}
env | grep -i proxy
:::

:::Paragraph{indent="1"}
The resulting output should be as below if there is a proxy enabled in place:
:::

:::BlockQuote{indent="1"}
https\_proxy=http\://192.168.x.x:8080
http\_proxy=http\://192.168.x.x:8080
:::

2. Disable proxy from the node

:::BlockQuote{indent="1"}
export no\_proxy=127.0.0.1,192.168.x.x,.default,kubernetes,.local,localhost,.svc,load balancer fqdn
:::

:::Paragraph{indent="1"}
The above should also be added to **$HOME/.bashrc&#x20;**&#x6F;therwise a node reboot will wipe it.
:::

3. Check to make sure the proxy is disabled.

:::BlockQuote{indent="1"}
env | grep -i proxy
:::

:::Paragraph{indent="1"}
The output from above should now be as below.
:::

:::BlockQuote{indent="1"}
https\_proxy=http\://192.168.x.x:8080
http\_proxy=http\://192.168.x.x:8080
no\_proxy=127.0.0.1,192.168.x.x,.default,kubernetes,.local,localhost,.svc,load balancer fqdn
:::

4. kubectl commands should work now.&#x20;
