The following are challenges using topics we learned yesterday! Give your best shot to as many of these as you can!
-
Create a new namespace called challenge
-
Create a single container pod named
challengepod. Usenginxas the container image. -
Put your pod in the
challengenamespace. You can do this by:- adding
-n challengeto the end of your kubectl command when creating the pod- OR
- put
namespace: challengeindented undermetadatain the manifest.
- adding
-
Confirm your pod was created in the correct namespace (
challenge) using akubectl getcommand. -
Put a resource quota on your new
challengenamespace! Ensure that there is a hard limit of1cpu and1Giof memory on thechallengenamespace! -
Confirm that the resource quota has been added by using
kubectl describe!
