Open
Description
/kind bug
What happened:
From a container running inside of a cluster:
# kubectl get po --request-timeout=11s
The connection to the server localhost:8080 was refused - did you specify the right host or port?
What you expected to happen:
# kubectl get po --request-timeout=11s
...long list of pods here...
How to reproduce it (as minimally and precisely as possible):
- Run a container with kubectl installed (I used an Ubuntu container)
kubectl get po
<- this workskubectl get po --request-timeout=11s
<- this fails
Anything else we need to know?:
Looking through the logs -v=8, it looks like --request-timeout bypasses the part where it realizes that in-cluster mode is enabled.
Environment:
- Kubernetes version (use
kubectl version
): I tested v.1.6.3 through v1.7.1 - Cloud provider or hardware configuration**: Parallels hypervisor
- OS (e.g. from /etc/os-release):
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
- Kernel (e.g.
uname -a
): Linux ubuntu 4.4.0-83-generic Move third_party code under third_party/src so it can be used in $GOPATH #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux - Install tools: kubeadm
- Others:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Needs Triage