<mohammadrony>

Konfig

Merge, split, and manage kubeconfig files.

Installation

kubectl krew install konfig

Usage

kubectl konfig -h

Merge another kubeconfig into the current one

kubectl konfig import --save ~/Downloads/cluster.kubeconfig

Export a single context to a separate file

kubectl konfig export CONTEXT_NAME > context.kubeconfig

List all contexts in current kubeconfig

kubectl config get-contexts