Skip to content

m3y/kctx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

kctx

Overview

This is the context switch helper for kubernetes.
Enable access to multiple clusters by using tmux pain etc.

Usage

$ # pain 1
$ kctx -h
This is the context switch helper for kubernetes.

usage:
  kctx           : show context list or use peco to filter context
  kctx <NAME>    : switch to <NAME> context

  kctx -h        : show this message

$ kctx dev
$ kubectl config current-context
dev
$ kubectl get pods
~ get dev pod list ~


=== other pain(tmux etc..) ===

$ # pain 2
$ kctx stg
$ kubectl config current-context
stg
$ kubectl get pods
~ get stg pod list ~

^^ Example of simultaneous connection to two clusters

Return to the original kubeconfig

$ unset KUBECONFIG

Install

$ git clone https://github.com/m3y/kctx.git
$ alias kctx="source /path/to/kctx/kctx"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages