LinuxCommandLibrary

kubie

Manage multiple Kubernetes contexts easily

TLDR

Display a selectable menu of contexts

$ kubie ctx
copy

Switch current shell to the given context
$ kubie ctx [context]
copy

Switch current shell to the given namespace
$ kubie ns [namespace]
copy

Switch current shell to the given context and namespace
$ kubie ctx [context] -n [namespace]
copy

Execute a command in the given context and namespace, without spawning a shell
$ kubie exec [context] [namespace] [command]
copy

Check the Kubernetes config files for issues
$ kubie lint
copy

SYNOPSIS

kubie command [arguments]

PARAMETERS

exec command
    Executes a command within the current Kubie context and namespace.

shell
    Opens a new shell session with the current Kubie context and namespace set.

enter
    Enters the current Kubie context and namespace, modifying the shell environment.

ns namespace
    Switches the Kubie namespace within the current context.

ctx context
    Switches the Kubie context.

info
    Displays information about the current Kubie context and namespace.

gui
    Opens a GUI to browse contexts.

--help
    Displays the help message.

--version
    Displays the version of Kubie.

DESCRIPTION

Kubie provides a convenient way to manage and switch between multiple Kubernetes contexts. It enhances the Kubernetes CLI experience by allowing users to execute commands within a specific context directly, manage namespaces within contexts easily, and visualize the current context in their terminal prompt.

Rather than constantly typing `kubectl --context `, Kubie enables users to enter a context and then execute commands as if that context was the default. Kubie simplifies workflow by automatically injecting the correct context into `kubectl` commands, allowing developers to interact with Kubernetes clusters more efficiently. Kubie's features include context switching, namespace management, and prompt integration to indicate the current context and namespace. It aims to improve productivity and reduce errors when working with multiple Kubernetes clusters and namespaces.

CAVEATS

Kubie relies on `kubectl` being installed and configured correctly. It also requires appropriate permissions to access the Kubernetes clusters specified in your `kubeconfig` file. Ensure that the `KUBECONFIG` environment variable is correctly set if your configuration is not in the default location.

PROMPT INTEGRATION

Kubie can integrate with your shell prompt to display the current context and namespace, providing a visual indicator of the Kubernetes environment you are working in. Configuration may be required to enable prompt integration depending on your shell.

CONFIGURATION

Kubie reads your existing `kubeconfig` file. It doesn't have its own separate configuration file.

SEE ALSO

kubectl(1)

Copied to clipboard