How can I export a single kubectl context?

12/26/2019

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?

-- Chris Stryczynski
kubectl
kubernetes

1 Answer

12/26/2019

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

-- Suresh Vishnoi
Source: StackOverflow