anilsenay / kubeswitch

Lightweight alternative for switching between Kubernetes clusters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubeswitch: Lightweight alternative for switching between Kubernetes clusters

kubeswitch is a tool that allows you to switch between Kubernetes clusters in a simple and fast way. It is a lightweight alternative to kubectx and kubeswitch

Actually, I build this project for myself. I wanted to switch between Kubernetes clusters in a simple way. I didn't need any other features. So I build this tool.

If you need more features, you should consider using kubectx or kubeswitch instead of this tool. Both are great tools with more features.

Installation

Go download
go install github.com/anilsenay/kubeswitch@latest

Usage

List all contexts and switch between them
kubeswitch
Get only current contexts
kubeswitch [current | --current]

Configuration

kubeswitch uses the KUBECONFIG environment variable to find the Kubernetes configuration file. If you don't set the KUBECONFIG environment variable, kubeswitch will use the default Kubernetes configuration file (~/.kube/config).

Also you can set it manually with --config flag.

kubeswitch --config=/path/to/kubeconfig

About

Lightweight alternative for switching between Kubernetes clusters


Languages

Language:Go 100.0%