HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

kubie — Utility to switch between `kubectl` contexts and namespaces. More information: <https://github.com/s

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbetweencontextsclikubectlswitchkubieutility

Problem

How to use the kubie command: Utility to switch between kubectl contexts and namespaces. More information: <https://github.com/sbstp/kubie#usage>.

Solution

kubie — Utility to switch between kubectl contexts and namespaces. More information: <https://github.com/sbstp/kubie#usage>.

Display a selectable menu of contexts:
kubie ctx


Switch current shell to the given context:
kubie ctx {{context}}


Switch current shell to the given namespace:
kubie ns {{namespace}}


Switch current shell to the given context and namespace:
kubie ctx {{context}} {{[-n|--namespace]}} {{namespace}}


Execute a command in the given context and namespace, without spawning a shell:
kubie exec {{context}} {{namespace}} {{command}}


Check the Kubernetes configuration files for issues:
kubie lint

Code Snippets

Display a selectable menu of contexts

kubie ctx

Switch current shell to the given context

kubie ctx {{context}}

Switch current shell to the given namespace

kubie ns {{namespace}}

Switch current shell to the given context and namespace

kubie ctx {{context}} {{[-n|--namespace]}} {{namespace}}

Execute a command in the given context and namespace, without spawning a shell

kubie exec {{context}} {{namespace}} {{command}}

Context

tldr-pages: common/kubie

Revisions (0)

No revisions yet.