Thanks to visit codestin.com
Credit goes to github.com

Skip to content

'--api-prefix' option in 'kubectl proxy' documentation is wrong #8943

@caesarxuchao

Description

@caesarxuchao

Without --api-prefix, kubectl proxy works just fine,

$ curl localhost:8001/api/
{
  "versions": [
    "v1beta1",
    "v1beta2",
    "v1beta3"
  ]
}

With '--api-prefix=xxx-api', it stops work:

$ curl localhost:8001/xxx-api/
404 page not found

My kubectl version:

$ kubectl version
Client Version: version.Info{Major:"0", Minor:"17+", GitVersion:"v0.17.1-878-g851f6b754241c0-dirty", GitCommit:"851f6b754241c01f30c43cddd2f9ca8c7c3f42f5", GitTreeState:"dirty"}
Server Version: version.Info{Major:"0", Minor:"17+", GitVersion:"v0.17.1-893-g58b683fe296da8-dirty", GitCommit:"58b683fe296da870fdbc6eb1a32dcf50ed94a8e3", GitTreeState:"dirty"}

@jlowdermilk, could you take a look? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/kubectlkind/bugCategorizes issue or PR as related to a bug.kind/documentationCategorizes issue or PR as related to documentation.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions