Hi guys, after trying the udemy course now i try the mock exam, in one of the qu . . .

tazlambert:
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?

Phani M:
@tazlambert the current context is part of the kubeconfig
Look for ~/.kube/config file
Do a cat of that and you can find the current context, without using the kubectl

Sanjay Kumar:
cat .kube/config | grep -v “current-context: ”
Then you can push the output to file.

Phani M:
@Sanjay Kumar the option to grep in the above command should be -w not -v

Sanjay Kumar:
My bad @Phani M

tazlambert:
Nice thank you guys