Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view the config details of the current context in kubectl?

I'd like to see the 'config' details as shown by the command of:

kubectl config view

However this shows the entire config details of all contexts, how can I filter it (or perhaps there is another command), to view the config details of the CURRENT context?

like image 777
Chris Stryczynski Avatar asked Nov 20 '18 22:11

Chris Stryczynski


2 Answers

use the below command to get the full config including certificates

kubectl config view --minify --flatten
like image 68
P Ekambaram Avatar answered Oct 07 '22 05:10

P Ekambaram


kubectl config view --minify displays only the current context

like image 34
Jordan Liggitt Avatar answered Oct 07 '22 03:10

Jordan Liggitt