Hi guys, after trying the udemy course now i try the mock exam, in one of the question, the mock exam ask how to get current context without kubectl, any of you know how to do it?
current context is part of the
cat of that and you can find the current context, without using the kubectl
cat .kube/config | grep -v “current-context: ”
Then you can push the output to file.
@Sanjay Kumar the option to
grep in the above command should be
-w not -v
My bad @Phani M
Nice thank you guys