Hi
For the CKAD
should I use
kubectl config set-context --current --namespace={sample_namespace}*
or should I type the namespace for each command ?
I read the article
and I fear that if I may forget to reset the context
Any advice ?
Hi
For the CKAD
should I use
kubectl config set-context --current --namespace={sample_namespace}*
or should I type the namespace for each command ?
I read the article
and I fear that if I may forget to reset the context
Any advice ?
Hello stephane.hordoir
you can use any one of them. both are working fine. But be careful, if you use --namespace, all objects"from kubectl" will be created under {sample_namespace}
In the CKAD exam, each question will need to be solved in a specific context, LF will provide the command need to be executed in each question to switch to the correct context, you should read and follow.
For the namespace, I would suggest typing it for each question, use the shorthand flag -n instead of --namespace will be a bit faster, but we don’t have to deal with namespace mistakes.
Thanks for reading my post and making questions!
Happy learning,
Trung.
Thanks to you for sharing your experience ! it is very valuable !