kubectxext
is a utility to extract a valid kubernetes config file from your kubernetes config for a given context.
Usage of kubectxext:
-context string
context to extract.
-kubeconfig string
kube config file to extract from. (default "/Users/jotadrilo/.kube/config")
There are several installation options:
- macOS
- Homebrew (recommended)
- Go
- Linux
- Go
If you use Homebrew you can install like this:
brew tap jotadrilo/tap
brew install jotadrilo/tap/kubectxext
go get github.com/jotadrilo/kubectxext/cmd/...
go get github.com/jotadrilo/kubectxext/cmd/...
This projects uses go mod
.
go mod download
go run ./cmd/kubectxext -- --help