Find out who and where you are:
Make anatomy-pqc4a the context's namespace and run a Pod ctx-test without -n. Check with kubectl get pods where it landed. Then set the namespace back to default and run a Pod home the same way.
Lab4 objectives100 XP
Find out who and where you are:
Make anatomy-pqc4a the context's namespace and run a Pod ctx-test without -n. Check with kubectl get pods where it landed. Then set the namespace back to default and run a Pod home the same way.
Read the current context
Ask kubectl which context it is using.
Read the current context
Ask kubectl which context it is using.
Read the user the context uses
The AUTHINFO column of kubectl config get-contexts, or user: in kubectl config view.
Make anatomy-{{seed}} the context's namespace, then run ctx-test from nginx without -n
After set-context, a plain kubectl run must land in anatomy-{{seed}}.
Set the context's namespace back to default, then run home from nginx without -n
The new Pod must land in default.