Content-Length: 314262 | pFad | https://github.com/kubernetes/kubernetes/issues/49343

C3 kubectl in-cluster mode conflicts with --request-timeout · Issue #49343 · kubernetes/kubernetes · GitHub
Skip to content

kubectl in-cluster mode conflicts with --request-timeout #49343

@wirehead

Description

@wirehead

/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 works
  • kubectl 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

Metadata

Metadata

Assignees

Labels

area/kubectlkind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.sig/cliCategorizes an issue or PR as relevant to SIG CLI.

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/kubernetes/kubernetes/issues/49343

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy