jotadrilo / kubectxext

Terminal interface that allows you to search and interactively select parts of your kube config file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubectxext

kubectxext is a utility to extract a valid kubernetes config file from your kubernetes config for a given context.

Usage

Usage of kubectxext:
  -context string
    	context to extract.
  -kubeconfig string
    	kube config file to extract from. (default "/Users/jotadrilo/.kube/config")

Installation

There are several installation options:

  • macOS
    • Homebrew (recommended)
    • Go
  • Linux
    • Go

macOS

Homebrew

If you use Homebrew you can install like this:

brew tap jotadrilo/tap
brew install jotadrilo/tap/kubectxext

go

go get github.com/jotadrilo/kubectxext/cmd/...

Linux

go

go get github.com/jotadrilo/kubectxext/cmd/...

Development

This projects uses go mod.

go mod download
go run ./cmd/kubectxext -- --help

About

Terminal interface that allows you to search and interactively select parts of your kube config file

License:MIT License


Languages

Language:Go 98.7%Language:Shell 1.3%