Skip to content

hyperkube + kubectl - unknown flagΒ #24088

Closed
@andrewmichaelsmith

Description

When trying to use kubectl from hyperkube I'm met with "unknown flag" errors. It looks as if the flags aren't being passed through to kubectl but hyperkube is trying to handle them itself (and subsequently giving an error when you give it flags it doesn't understand).

You can reproduce simply by running:

docker run -it gcr.io/google_containers/hyperkube-amd64:v1.2.2 /hyperkube kubectl create -f x

And you'll see the error:

Error: unknown shorthand flag: 'f' in -f

Kubernetes command line client

Usage:
  Kubernetes command line client [flags]

Available Flags:
..
..
..

Metadata

Assignees

No one assigned

    Labels

    priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions