Question on CKAD exam to change namespace

I have recently appeared for CKAD exam. During exam, I am unable to change namespace using following command and every time it is showing permission issue (full error not able to recall). The command executed after ssh to cluster.

kubectl config set-context --current --namespace

Due to this permission issue I need to add --namespace in every kubectl command to create/edit/delete Kubernetes object. Due to this issue, I am unable to complete all the question in my CKAD exam and just for 2 marks not able to clear the exam.

Is this issue related to environment or am I done something wrong ? Any clue will help me to clear the retake exam.

I’m guessing that the master kubeconfig file on the candidate node was read-only, which would make it impossible to do your command – it would need to write to that file. But that’s a guess – in all the times I’ve taken an LF exam, it never occurred to me to do that, so I never checked.

I’m not sure why they would do this. I suppose you could raise this in a ticket on your LF account, and ask about this. No rule says you can’t do this; but they may want to prevent candidates from screwing up their exams by corrupting that file.

You mean after ssh to some cluster node? You should execute kubectl commands from the candidate-node as this is where the master KUBECONFIG file is, and config changes should always work there. If they did not from the candidate node then you should raise a ticket.

PRO TIP: Use more than one terminal so you can keep a terminal open on candidate node and use a second terminal for SSH to other nodes.

I had the same issue and env was pathetic. unable to set context and no proper instructions, spent hell lot of time to type namespace only. swtiching between kubernate page and terminal was really horibble.

I would suggest people should FIRST TAKE EXAM on "HOW TO USE THAT CKAD MARS ENVIRONMENT. " then go for ckad actual exam.

humble request to certificate issuer, pls provide killercoda.com itself rather this MARS ENVIRONMENT.