Search code examples
kuberneteskubectl

How can I export a single kubectl context?


How can I export a single kubectl context?

My current kubectl config file has multiple contexts defined, and it would be tedious manual process to try isolate the single context from the rest.

Is this supported?


Solution

  • kubectl config view --minify will remove all information not used by current-context from the output