An open API service indexing awesome lists of open source software.

https://github.com/danielb42/kubeswitch

visually select kubernetes context/namespace from tree
https://github.com/danielb42/kubeswitch

context k8s kubectl kubernetes namespace switch

Last synced: 5 months ago
JSON representation

visually select kubernetes context/namespace from tree

Awesome Lists containing this project

README

          

# kubeswitch

![Build](https://github.com/danielb42/kubeswitch/workflows/Build/badge.svg)
![Tag](https://img.shields.io/github/v/tag/danielb42/kubeswitch)
![Go Version](https://img.shields.io/github/go-mod/go-version/danielb42/kubeswitch)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/danielb42/kubeswitch)](https://pkg.go.dev/github.com/danielb42/kubeswitch)
[![Go Report Card](https://goreportcard.com/badge/github.com/danielb42/kubeswitch)](https://goreportcard.com/report/github.com/danielb42/kubeswitch)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

Switch your current kubernetes context and namespace graphically by selecting from a tree.
kubeswitch talks to the kubernetes API and does not depend on kubectl.

![Demo](https://raw.githubusercontent.com/danielb42/kubeswitch/master/demo.gif)

**Note for Non-Admin Users:** If you are a cluster tenant without API-permission to list namespaces, kubeswitch won't work for you (as it can't retrieve available namespaces). Sorry, there's not much we can do about that.

## Install

Available for Linux and MacOS: [Latest Release](https://github.com/danielb42/kubeswitch/releases/latest)

## Config

Read from the default location `~/.kube/config`. If not present, the location is read from environment variable `KUBECONFIG` (remember to `export`). That env variable can contain multiple locations separated by `:` from where configs are merged together.

## Run

| Run... | to... |
|-|-|
| `kubeswitch` | select context/namespace graphically |
| `kubeswitch ` | switch to namespace in current context quickly |
| `kubeswitch ` | switch to context/namespace |
| `kubeswitch .` | switch to `default` namespace of context |